home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / editor / wordbas.zip / WORDBAS.CRD (.txt) < prev    next >
Cardfile Document  |  1991-06-11  |  118KB  |  4,008 lines

  1. ----------------------------------------
  2.     WordBASIC Help Cardfile
  3. ........................................
  4.   This cardfile is designed to provide quick access to the functions and syntax of WordBASIC.  It was derived from the TECHREF.DOC file included with Word for Windows. 
  5.  
  6. References:
  7. WTR-Word for Windows Technical Reference
  8.  
  9.         Compiled by Steve Ahola 
  10.                     (73727,3715)
  11. ----------------------------------------
  12. ----------------------------------------
  13.   Auto Macros 
  14. ........................................
  15.   Word reserves special names for macros you can create to alter aspects of Word's behavior. These are called "auto macros". Word recognizes a macro whose name begins with "Auto" as a macro that runs automatically when the situation it applies to arises. You supply the actual steps for the auto macro.
  16. ----------------------------------------
  17. ----------------------------------------
  18.   Auto Macros  (more)
  19. ........................................
  20.   You can prevent an auto macro from running by holding down the Shift key when you perform the action that triggers the macro.
  21.  
  22. ----------------------------------------
  23. ----------------------------------------
  24.   Auto Macros (Definitions)
  25. ........................................
  26. AutoExec: runs when you start Word.Use     /m switch to disable AutoExec macro.
  27.  
  28. AutoNew: runs after you create a new    document based on the current template.
  29.  
  30. AutoOpen: runs after you open a file.
  31.  
  32. AutoClose:runs when you close a document
  33.  
  34. AutoExit:runs when you quit Word.
  35. ----------------------------------------
  36. ----------------------------------------
  37.   Data Types 
  38. ........................................
  39.   WordBASIC supports two basic data types: strings and numbers. Word uses double-precision, floating-point numbers. Strings can contain up to 32,000 characters, depending on the amount of memory available. (If a macro uses dialog boxes or commands that use dialog boxes, a third data type is available, the dialog record.)
  40. ----------------------------------------
  41. ----------------------------------------
  42.   Expressions
  43. ........................................
  44.   Word can evaluate complex numeric and string expressions. An expression is any valid combination of variables, numbers or strings, and functions that evaluate down to a single result. This result can be a number, a string, or, in the case of logical expressions, a True or False condition. (In WordBASIC all logical expressions return -1 if True and 0 if false.) At its simplest, an expression is only one of these items
  45. ----------------------------------------
  46. ----------------------------------------
  47.   Expressions (more)
  48. ........................................
  49.   An expression can also consist of several elements in combination: 
  50.  
  51. Page1Lines + Page2Lines 
  52. "The " + CarName$ + "automobile is the
  53.    best seller this week" 
  54. (2 * Pi) * Radius
  55. (Rain Or Snow) And (Hail Or Sleet) 
  56. Int((365 - Days) / 7)
  57. FirstQtr + SecondQtr + ThirdQtr +
  58.    FourthQtr > LastYear 
  59. ----------------------------------------
  60. ----------------------------------------
  61.   Expressions (still more)
  62. ........................................
  63.   You can use an expression anywhere that a constant or a variable can be used, as in these examples: 
  64.  
  65. Print Left$(FirstName$,1) + ". " +
  66.    LastName$ 
  67. LineDown ParaLong + 1, Switch 
  68. If Profit > 0 and Month$ = "Jan" Then
  69.    Print "Good Year!" 
  70. ----------------------------------------
  71. ----------------------------------------
  72.   Numeric Expessions
  73. ........................................
  74.   Bitwise operators (Not, And, and Or) convert numbers to 16-bit integers and then process the individual bits of the number in binary format. Not of -1 is False. Not of any other number, including 0 (zero), is True. There- fore, be careful when using bitwise operators with non-Boolean functions. Multiplication and division is performed before addition and sub- traction unless parentheses are used.
  75. ----------------------------------------
  76. ----------------------------------------
  77.   Operators
  78. ........................................
  79. =  Tests if two variables are equal
  80. <> Tests if two variables are not equal
  81. >  Tests if 1st var is greater than 2nd
  82. <  Tests if 1st var is less than 2nd
  83. <= Tests if 1st variable is less than 
  84.     or equal to 2nd variable
  85. => Tests if 1st variable is greater than
  86.     or equal to 2nd variable
  87.  
  88. Note: These operators also work on string variables using ASCII values.
  89. ----------------------------------------
  90. ----------------------------------------
  91.   Statements and Functions
  92. ........................................
  93.   WordBASIC includes both statements and functions. A statement performs an action, such as italicizing text. A function produces, or "returns," a number or a set of characters that represent information. Functions appear in the text with parentheses () following them.
  94. ----------------------------------------
  95. ----------------------------------------
  96.   Statements and Functions (more)
  97. ........................................
  98.   WordBASIC includes three types of statements and functions: 
  99. 1. utility statements and functions   2. BASIC statements and functions 
  100. 3. dialog control definition statements
  101.  
  102.   These statements and functions are described in more detail in WTR (Macros: Reference).
  103. ----------------------------------------
  104. ----------------------------------------
  105.   Variables
  106. ........................................
  107.   Variables are usually local to the subroutine or function in which they are used. If your macro consists of several subroutines or functions and you want to make a variable globally available to subroutines and functions within the macro, declare them with a Dim statement located outside the Sub MAIN. If you want to permanently store variables, store them in a file or glossary.
  108. ----------------------------------------
  109. ----------------------------------------
  110.   Variables (more)
  111. ........................................
  112.  String variables must have a trailing dollar sign; for example, Name$. Numeric variable names require no special character. Unlike standard BASIC, WordBASIC does not support integer variables. Word does support multidimensional arrays of strings or values. Array variables are declared with the Dim statement and can be redimensioned with the Redim statement.
  113. ----------------------------------------
  114. ----------------------------------------
  115.  DlgBox Basics
  116. ........................................
  117.   A dialog record consists of a list of "fields." Each field in a dialog record contains the value of an element in the dialog box; the value is a number in some cases and a string in others. Some dialog record fields can accept either a number or a string (in these cases, Word converts a string such as "1 in" to printer's points.) These fields are followed by [$] here, which is NOT to be included.
  118. ----------------------------------------
  119. ----------------------------------------
  120.  DlgBox Basics (more)
  121. ........................................
  122.   You can set or read a specific field of a dialog record by specifying the field name, preceded by a period (.). 
  123. Dim can be used to dimension dialog records. The syntax follows: 
  124.     Dim DialogRecord As DialogBox
  125. (Dim allocates to DialogRecord the storage space and associated field types for DialogBox.) Use GetCurValues
  126. to copy the current elements of a dialogbox to a dialog record.
  127. ----------------------------------------
  128. ----------------------------------------
  129.  DlgBox Coordinates
  130. ........................................
  131.   In the syntax lines, the following arguments are used:
  132.  
  133. x = Hor pos. of the item in 1/8 SFCWU
  134. y = Vert. pos. of the item in 1/12 SFCWU
  135. dx = Width of the item in 1/4 SFCWU
  136. dy = Height of the item in 1/8 SFCWU
  137.  
  138. (SFCWU = system font character width
  139. units) 
  140. ----------------------------------------
  141. ----------------------------------------
  142.  DlgBox Example
  143. ........................................
  144. Sub MAIN 
  145. Dim dlg As FormatDocument 
  146. GetCurValues dlg     
  147. If dlg.MirrorMargins = 0 Then       dlg.MirrorMargins = 1 
  148.   Else dlg.MirrorMargins = 0 
  149. Dialog dlg     
  150. FormatDocument dlg
  151. End Sub
  152. ----------------------------------------
  153. ----------------------------------------
  154.  DlgBox: Begin Dialog
  155. ........................................
  156. Syntax:
  157.  Begin Dialog UserDialog [x, y,] dx, dy 
  158.  
  159.   Starts the dialog box declaration. The dx and dy arguments are the width and height of the dialog box (relative to the given x and y coordinates). If x and y are not supplied, then the dlg box is positioned automatically by Word at the point where dialog boxes usually appear on the screen.
  160. ----------------------------------------
  161. ----------------------------------------
  162.  DlgBox: CheckBox
  163. ........................................
  164. Syntax:
  165.  CheckBox x, y, dx, dy, Text$, .Field 
  166.  
  167.   Creates a check box. When the dialog box is used .Field contains current setting. If the value is 0, the box is not checked; any other value means the box is checked.The result is a numeric field with the value 0 (not checked) or 1 (checked) or -1 (grayed) in the dialog record returned from Dialog.
  168. ----------------------------------------
  169. ----------------------------------------
  170.  DlgBox: ComboBox
  171. ........................................
  172. Syntax:  ComboBox x, y, dx, dy,
  173.                 Array_Variable$, .Field 
  174.  
  175.   Creates an expanded combo box with the list box filled from the Array_Variable$. When the dialog box is used, .field contains the current setting, your selected string, returned from Dialog.
  176.  
  177. ----------------------------------------
  178. ----------------------------------------
  179.  DlgBox: Dialog
  180. ........................................
  181. Syntax:  Dialog DialogRecord 
  182.  
  183.   Displays the dialog box specified by DialogRecord for editing. After editing, you can store edits in DialogRecord by choosing OK or lose edits by choosing Cancel. Choosing Cancel produces a run-time error that you can trap with On Error. 
  184.  
  185. ----------------------------------------
  186. ----------------------------------------
  187.  DlgBox: End Dialog
  188. ........................................
  189. Syntax:  End Dialog 
  190.  
  191.  Ends the definition of the dialog box. 
  192.  
  193. ----------------------------------------
  194. ----------------------------------------
  195.  DlgBox: ListBox
  196. ........................................
  197. Syntax:  ListBox x, y, dx, dy,
  198.                 Array_Variable$, .Field 
  199.  
  200.   Creates a list box control filled with the strings in Array_Variable$. When the dialog box is used, .Field contains the current setting, the index of your selected choice, returned 
  201. from Dialog. 
  202.  
  203. ----------------------------------------
  204. ----------------------------------------
  205.  DlgBox: OKButton and CancelButton 
  206. ........................................
  207. Syntax:  OKButton x, y, dx, dy 
  208. Syntax:  CancelButton x, y, dx, dy 
  209.  
  210.   If you choose the OK button, the macro continues. If you choose the Cancel button, an error is generated. This error can be trapped with On Error. For more information on On Error, see WTR (Macros: Introduction).
  211.  
  212. ----------------------------------------
  213. ----------------------------------------
  214.  DlgBox: OptionGroup and OptionButton
  215. ........................................
  216. Syn:  OptionGroup .Field 
  217. Syn:  OptionButton x, y, dx, dy, Text$ OptionGroup begins the definition of a series of related option buttons. Within the group only one button may be active (on) at a time. The .Field argument is set to a value between 0 (zero) and n, which represents the value of the currently active button.
  218.  
  219. ----------------------------------------
  220. ----------------------------------------
  221.  DlgBox: Text
  222. ........................................
  223. Syntax:  Text x, y, dx, dy, Text$ 
  224.  
  225.   Creates a box of static text. Text does not have a result. Text statement must precede the dialog box control it is associated with. 
  226.  
  227. ----------------------------------------
  228. ----------------------------------------
  229.  DlgBox: TextBox
  230. ........................................
  231. Syntax:  TextBox x, y, dx, dy, .Field 
  232.  
  233.   Creates an edit control. 
  234.  
  235. ----------------------------------------
  236. ----------------------------------------
  237. Abs() 
  238. ........................................
  239. Syntax:  Num = Abs(n) 
  240.  
  241.   Returns the unsigned value of n. 
  242.  
  243. ----------------------------------------
  244. ----------------------------------------
  245. Activate 
  246. ........................................
  247. Syntax: Activate WindowText$, [PaneNum] 
  248.  
  249.   Activates the window whose title bar is specified by WindowText$. 
  250.  
  251. PaneNum (when specified):
  252. 1 or 2  activates top pane
  253. 3 or 4  activates bottom pane
  254.  
  255. ----------------------------------------
  256. ----------------------------------------
  257. AppActivate 
  258. ........................................
  259. Syntax:  AppActivate WindowText$,                                    [Immediate] 
  260.  Activates the application whose title bar is specified by WindowText$.
  261.  
  262. Immediate (when supplied): 
  263. 0  Word flashes title bar, waits for
  264.     response and then activates app.
  265. 1  Word immediately shifts focus to 
  266.     other application.
  267. ----------------------------------------
  268. ----------------------------------------
  269. AppInfo$() 
  270. ........................................
  271. Syntax:  A$ = AppInfo$ (TypeOfInfo) 
  272. Returns information about the state of Word. Values are returned as strings. Use Val(AppInfo$(n)) to convert the string to a number if appropriate.
  273. 1 Win ver   7 Ht doc       13 NCP (-1)
  274. 2 WfW ver   8 WinMax (-1)  14 Mouse(-1)  
  275. 3 WfW mode  9 Tot conv RAM 15 Avl hd sp 
  276. 4 Xpos WfW  10 Avl conv RAM  NOTE:
  277. 5 Ypos WfW  11 Tot exp RAM   4-7 are in
  278. 6 Width doc 12 Avl exp RAM   points(pts)
  279. ----------------------------------------
  280. ----------------------------------------
  281. AppMaximize 
  282. ........................................
  283. Syntax:  AppMaximize 
  284.  
  285.   Zooms the Word window to full screen size. 
  286.  
  287. ----------------------------------------
  288. ----------------------------------------
  289. AppMaximize() 
  290. ........................................
  291. Syntax:  Log = AppMaximize() 
  292.  
  293.  Returns a nonzero value if the window is maximized. 
  294.  
  295. ----------------------------------------
  296. ----------------------------------------
  297. AppMinimize 
  298. ........................................
  299. Syntax:  AppMinimize 
  300.  
  301.   Minimizes the Word window to an icon. 
  302.  
  303. ----------------------------------------
  304. ----------------------------------------
  305. AppMinimize() 
  306. ........................................
  307. Syntax:  Log = AppMinimize() 
  308.  
  309.  Returns a nonzero value if the window is minimized. 
  310.  
  311. ----------------------------------------
  312. ----------------------------------------
  313. AppMove 
  314. ........................................
  315. Syntax:  AppMove XPos, YPos 
  316.  
  317.   Moves the Word window to XPos, YPos relative to the top left of the screen. Values are in points. 
  318.  
  319. ----------------------------------------
  320. ----------------------------------------
  321. AppRestore 
  322. ........................................
  323. Syntax:  AppRestore 
  324.  
  325.   Restores the Word window from a max-
  326. imized or minimized state. 
  327.  
  328. ----------------------------------------
  329. ----------------------------------------
  330. AppSize 
  331. ........................................
  332. Syntax:  AppSize XPos, YPos 
  333.  
  334.   Resizes the Word window. Values are in points. If Window is maximized or minimized this command is not available. (Add AppRestore immediately before this command to insure that window is not zoomed or iconized).
  335.  
  336. ----------------------------------------
  337. ----------------------------------------
  338. Asc() 
  339. ........................................
  340. Syntax:  Num = Asc(A$) 
  341.  
  342.   Returns the ANSI character code of the first character in A$. 
  343.  
  344. ----------------------------------------
  345. ----------------------------------------
  346. Beep 
  347. ........................................
  348. Syntax:  Beep [Beeptype] 
  349.  
  350.   Causes the computer's speaker to beep. Beeptype is 1, 2, 3, or 4. If Beeptype is omitted,it is assumed to be 1. The exact tone produced will depend on your hardware configuration. A typical use of Beep is to signal the end of a macro.
  351.  
  352. ----------------------------------------
  353. ----------------------------------------
  354. Bold
  355. ........................................
  356. Syntax:  Bold [On] 
  357.  
  358.   Without the argument, toggles bold for the entire selection. If On is non-
  359. zero, makes the entire selection bold. If On is 0 (zero), removes bold from the entire selection. 
  360.  
  361. ----------------------------------------
  362. ----------------------------------------
  363. Bold() 
  364. ........................................
  365. Syntax:  Num = Bold() 
  366.  
  367.   Returns 0 (zero) if none of the selection is bold, 1 if all of the selection is bold, or -1 if part of the selection is bold. 
  368.  
  369. ----------------------------------------
  370. ----------------------------------------
  371. BookmarkName$() 
  372. ........................................
  373. Syntax:  A$ = BookmarkName$(Count) 
  374.  
  375.   Returns the name of the bookmark. Count must be in the range from 1 to 
  376. CountBookmarks(). 
  377.  
  378. ----------------------------------------
  379. ----------------------------------------
  380. Call 
  381. ........................................
  382. Syntax:[Call] Subname [ParameterList]
  383.  
  384.   Transfers control to a subroutine. 
  385. ----------------------------------------
  386. ----------------------------------------
  387. Cancel
  388. ........................................
  389. Syntax:  Cancel 
  390.  
  391.   Terminates a mode such as Column-
  392. Select and does not perform the action. See "OK" later in this section. 
  393.  
  394. ----------------------------------------
  395. ----------------------------------------
  396. CenterPara
  397. ........................................
  398. Syntax:  CenterPara 
  399.  
  400.   Centers the currently selected paragraph(s). 
  401.  
  402. ----------------------------------------
  403. ----------------------------------------
  404. CenterPara() 
  405. ........................................
  406. Syntax:  Num = CenterPara() 
  407.  
  408. Returns Num based on selection:
  409. 0   if no paragraphs are centered
  410. 1   if all paragraphs are centered
  411. -1  if more than one kind of paragraph 
  412.      alignment is used
  413. ----------------------------------------
  414. ----------------------------------------
  415. ChangeCase
  416. ........................................
  417. Syntax:  ChangeCase [Type] 
  418.  
  419.   Without an argument, alternates the case of the current selection between all lowercase, all caps, and initial caps based on the first two characters of the selection. 
  420. Type = 0     All lowercase
  421. Type = 1     All caps
  422. Type = 2     Initial caps
  423.  
  424. ----------------------------------------
  425. ----------------------------------------
  426. ChangeRulerMode 
  427. ........................................
  428. Syntax:  ChangeRulerMode 
  429.  
  430.   Cycles the ruler between Paragraph, Table, and Document modes. 
  431.  
  432. ----------------------------------------
  433. ----------------------------------------
  434. CharColor 
  435. ........................................
  436. Syntax:  CharColor Color 
  437.  
  438.   Sets the character color of the sel-
  439. ection to Color, which may be one of the following: 
  440. 0  Auto    5  Magenta
  441. 1  Black   6  Red
  442. 2  Blue    7  Yellow
  443. 3  Cyan    8  White
  444. 4  Green (Auto is set by Control Panel)
  445.  
  446. ----------------------------------------
  447. ----------------------------------------
  448. CharColor()
  449. ........................................
  450. Syntax:  Num = CharColor() 
  451.  
  452.   Returns the numbers set by the Char-
  453. Color statement, or -1 if all the selected text is not the same color. See CharColor. 
  454.  
  455. ----------------------------------------
  456. ----------------------------------------
  457. CharLeft
  458. ........................................
  459. Syntax:  CharLeft [Repeat], [Select] 
  460.  
  461.   Moves the selection left by Repeat characters. If the repeat argument is omitted, 1 is assumed. If Select is nonzero, the selection is extended to the left or right by Repeat characters. 
  462.  
  463. ----------------------------------------
  464. ----------------------------------------
  465. CharLeft()
  466. ........................................
  467. Syntax:  Log = CharLeft([Repeat],                                      [Select]) 
  468.  
  469.   Moves the selection left by Repeat characters. Returns 0 (zero) if the action cannot be performed. 
  470.  
  471. ----------------------------------------
  472. ----------------------------------------
  473. CharRight
  474. ........................................
  475. Syntax:  CharRight [Repeat], [Select] 
  476.  
  477.   Moves the selection right by Repeat characters. If the Repeat argument is omitted, 1 is assumed. If Select is nonzero, the selection is extended to the right by Repeat characters. If Select is 0 (zero) or omitted, the selection is not extended.
  478.  
  479. ----------------------------------------
  480. ----------------------------------------
  481. CharRight()
  482. ........................................
  483. Syntax:  Log = CharRight([Repeat],                                     [Select]) 
  484.  
  485.   Moves the selection right by Repeat characters. Returns 0 (zero) if the action cannot be performed. 
  486.  
  487. ----------------------------------------
  488. ----------------------------------------
  489. ChDir
  490. ........................................
  491. Syntax:  ChDir Name$ 
  492.  
  493.   Changes directories to the one specified by Name$. 
  494.  
  495. ----------------------------------------
  496. ----------------------------------------
  497. Chr$()
  498. ........................................
  499. Syntax:  A$ = Chr$(AnsiCode) 
  500.  
  501.  Returns the character whose ANSI code is AnsiCode. 
  502.  
  503. ----------------------------------------
  504. ----------------------------------------
  505. Close
  506. ........................................
  507. Syntax:  Close [[#]StreamNumber] 
  508.  
  509.   Closes the file attached to Stream-
  510. Number. If StreamNumber is not sup-
  511. lied, all open files are closed. 
  512.  
  513. ----------------------------------------
  514. ----------------------------------------
  515. ClosePane
  516. ........................................
  517. Syntax:  ClosePane 
  518.  
  519.   Closes the current window pane. You use this statement to close a pane in a split document, a header/footer pane, a footnote pane, etc. This does not close a document window, only a pane in a window. 
  520.  
  521. ----------------------------------------
  522. ----------------------------------------
  523. CloseUpPara
  524. ........................................
  525. Syntax:  CloseUpPara 
  526.  
  527.   Makes the space before and after the selected paragraph 0 (zero). 
  528.  
  529. ----------------------------------------
  530. ----------------------------------------
  531. CmpBookmarks() 
  532. ........................................
  533. Syntax:  Num = CmpBookmarks
  534.                (Bookmark1$, Bookmark2$) 
  535.  
  536.   Compares two named bookmarks and returns one of the following values between 0 and 13. See WTR for details.
  537.  
  538.  
  539. ----------------------------------------
  540. ----------------------------------------
  541. ColumnSelect 
  542. ........................................
  543. Syntax:  ColumnSelect 
  544.  
  545.   Starts the column selection mode. Cancel ends this mode. 
  546.  
  547. ----------------------------------------
  548. ----------------------------------------
  549. ControlRun 
  550. ........................................
  551. Syntax:  ControlRun Application 
  552.  
  553.   Equivalent to the Control Run dialog box. Runs an application from the Word Control menu. 
  554.  
  555.   ControlRun 0  runs Clipboard
  556.   ControlRun 1  runs Control Panel
  557.  
  558. ----------------------------------------
  559. ----------------------------------------
  560. CopyBookmark
  561. ........................................
  562. Syntax:  CopyBookmark Bookmark1$,                                     Bookmark2$ 
  563.  
  564.   Sets Bookmark2$ equal to Bookmark1$. 
  565.  
  566. ----------------------------------------
  567. ----------------------------------------
  568. CopyFormat
  569. ........................................
  570. Syntax:  CopyFormat 
  571.  
  572.  Copies the formatting of the selected text. 
  573.  
  574. ----------------------------------------
  575. ----------------------------------------
  576. CopyText
  577. ........................................
  578. Syntax:  CopyText 
  579.  
  580.   Copies text. Equivalent to the copy to key (Shift+F2). Does not place copy on Clipboard.
  581.  
  582. ----------------------------------------
  583. ----------------------------------------
  584. CountBookmarks()
  585. ........................................
  586. Syntax:  Num = CountBookmarks() 
  587.  
  588.   Returns the number of bookmarks you have defined in the document. 
  589.  
  590. ----------------------------------------
  591. ----------------------------------------
  592. CountFiles()
  593. ........................................
  594. Syntax:  Num = CountFiles() 
  595.  
  596.   Returns the number of names in the file list on the File menu. 
  597.  
  598. ----------------------------------------
  599. ----------------------------------------
  600. CountFont()
  601. ........................................
  602. Syntax:  Num = CountFonts() 
  603.  
  604.  Returns the number of fonts available with the printer you've selected. 
  605.  
  606. ----------------------------------------
  607. ----------------------------------------
  608. CountGlossaries() 
  609. ........................................
  610. Syntax:  Num = CountGlossaries
  611.                             ([Context]) 
  612.   Returns the number of glossaries defined in the given context. 
  613.  
  614. Context: 
  615. 0  global (default)
  616. 1  document template
  617.  
  618. ----------------------------------------
  619. ----------------------------------------
  620. CountMacros()
  621. ........................................
  622. Syntax:  Num = CountMacros([Context],                                     [All]) 
  623.  
  624.   Returns the number of programs def-
  625. ined in the given context. Context can be 0 (zero) for global or 1 for doc-
  626. ument template. The default is global. 
  627. If All is nonzero, built-in macros are included. 
  628. ----------------------------------------
  629. ----------------------------------------
  630. CountStyles()
  631. ........................................
  632. Syntax:  Num = CountStyles([Context],                                     [All]) 
  633.   Returns the number of styles defined in the given context.If All is nonzero built-in styles are included.
  634.  
  635. Context: 
  636. 0  document (default)
  637. 1  document template.
  638. ----------------------------------------
  639. ----------------------------------------
  640. CountWindows()
  641. ........................................
  642. Syntax:  Num = CountWindows() 
  643.  
  644.   Returns the number of windows in the list on the Window menu. 
  645.  
  646. ----------------------------------------
  647. ----------------------------------------
  648. Date$()
  649. ........................................
  650. Syntax:  A$ = Date$() 
  651.  
  652.   Returns today's date. 
  653.  
  654. ----------------------------------------
  655. ----------------------------------------
  656. DDEExecute
  657. ........................................
  658. Syntax:  DDEExecute ChanNum,
  659.                          ExecuteString$ 
  660.  
  661.   Sends an execute message over the channel ChanNum with an ExecuteString$, 
  662. which is defined by the receiving application. Use the format described under SendKeys to send specific key sequences.Must use DDEInitiate() to open channel number. 
  663.  
  664. ----------------------------------------
  665. ----------------------------------------
  666. DDEInitiate()
  667. ........................................
  668. Syntax:  ChanNum = DDEInitiate(App$,                                     Topic$) 
  669.   Opens a DDE channel to an applicat-
  670. ion. App$ is the application name defined by the other application. Topic$ describes something in the application you are accessing, usually the document containing the data you wish to use. If DDEInitiate() is suc-
  671. cessful, it returns number of open chan 
  672.  
  673. ----------------------------------------
  674. ----------------------------------------
  675. DDEPoke
  676. ........................................
  677. Syntax:  DDEPoke ChanNum, Item$, Data$ 
  678.  
  679.   Sends the data to the item specified by Item$ in the application connected to channel ChanNum. ChanNum must have been opened by the DDEInitiate() func-
  680. tion. If DDEPoke is unsuccessful, an error is generated. 
  681.  
  682. ----------------------------------------
  683. ----------------------------------------
  684. DDERequest$()
  685. ........................................
  686. Syntax: A$=DDERequest$ (ChanNum, Item$) 
  687.  
  688.  Requests the information specified by Item$ over the DDE channel specified by 
  689. ChanNum. ChanNum must have been opened by the DDEInitiate() function. If 
  690. DDERequest$() is unsuccessful, a null string ("") is returned.DDERequest$() returns the data in CF_TEXT format.
  691. Pictures/RTF text cannot be transferred.
  692. ----------------------------------------
  693. ----------------------------------------
  694. DDETerminate
  695. ........................................
  696. Syntax:  DDETerminate ChanNum 
  697.  
  698.   Closes the channel ChanNum. The channel must have been opened with the 
  699. DDEInitiate() function. 
  700.  
  701. ----------------------------------------
  702. ----------------------------------------
  703. DDETerminateAll 
  704. ........................................
  705. Syntax:  DDETerminateAll 
  706.  
  707.   Similar to DDETerminate, but closes all open channels. 
  708.  
  709. ----------------------------------------
  710. ----------------------------------------
  711. Declare
  712. ........................................
  713. Syn:  DECLARE Sub SubName Lib LibName
  714.       [ParameterList][Alias ModuleName] 
  715. Syn:  DECLARE Function FunctionName Lib
  716. LibName[ParameterList][AliasModuleName] 
  717.  
  718.  Declares an external library function as a subroutine or function inside a macro. 
  719.  
  720. ----------------------------------------
  721. ----------------------------------------
  722. DeleteBackWord
  723. ........................................
  724. Syntax:  DeleteBackWord 
  725.  
  726.   Deletes the word immediately pre-
  727. ceding the selection but does not place it on the Clipboard. 
  728.  
  729. ----------------------------------------
  730. ----------------------------------------
  731. DeleteWord
  732. ........................................
  733. Syntax:  DeleteWord 
  734.  
  735.   Deletes the word immediately fol-
  736. lowing the selection but does not place it on the Clipboard. 
  737.  
  738. ----------------------------------------
  739. ----------------------------------------
  740. Dim
  741. ........................................
  742. Syntax: Dim [Shared] Var [(Size)]
  743.                      [,Var [(Size)]...] 
  744.  
  745.  Declares a variable's type and alloc- ates storage space for the variable. The Dim statement declares a variable's type and allocates storage space for the variable. If Shared is used, then the variable is global; if not, the variable is local to the Sub or Function. 
  746. ----------------------------------------
  747. ----------------------------------------
  748. Dim (more)
  749. ........................................
  750.   If the variable is global, the Dim statement must be located outside the Sub or Function. If the variable is local, the Dim statement must be located inside the Sub or Function. Dim can also be used to declare global scalar (nonarray) variables. Arrays allow you to assign multiple values to a single variable. 
  751. ----------------------------------------
  752. ----------------------------------------
  753. DisableInput 
  754. ........................................
  755. Syntax:  DisableInput [Disable] 
  756.  
  757.   Prevents the Esc key from inter-
  758. rupting a macro. The Esc key is enab-
  759. led by setting Disable to 0 (zero). 
  760.  
  761. DisableInput 0    Disable inactive
  762. DisableInput 1    Disable active(deflt)
  763.  
  764. ----------------------------------------
  765. ----------------------------------------
  766. DocClose
  767. ........................................
  768. Syntax:  DocClose [Save] 
  769.  
  770.   Closes the current window or pane. If Save is 1, Word saves the document if it has been edited (i.e., "dirty") since the last save; if Save is 2, Word does not save the document, but closes the window or pane. If Save is 0 or omitted, Word prompts user to save document if it has been edited. 
  771.  
  772. ----------------------------------------
  773. ----------------------------------------
  774. DocMaximize
  775. ........................................
  776. Syntax:  DocMaximize 
  777.  
  778.   Zooms the document window to application window size. If it is already maximized, the screen is displayed in the restored state. 
  779.                                                                                                                                                                                                              
  780. ----------------------------------------
  781. ----------------------------------------
  782. DocMaximize()
  783. ........................................
  784. Syntax:  Log = DocMaximize() 
  785.  
  786.  Returns -1 if the window is maximized. 
  787.  
  788. ----------------------------------------
  789. ----------------------------------------
  790. DocMove
  791. ........................................
  792. Syntax:  DocMove XPos, YPos 
  793.  
  794.   Moves the document window to XPos, YPos relative to the top-left corner of the document area. Values are in points. 
  795.  
  796. ----------------------------------------
  797. ----------------------------------------
  798. DocRestore
  799. ........................................
  800. Syntax:  DocRestore 
  801.  
  802.   Restores the Word window from a maximized state. 
  803.  
  804. ----------------------------------------
  805. ----------------------------------------
  806. DocSize
  807. ........................................
  808. Syntax:  DocSize Width, Height 
  809.  
  810.   Sizes the document window to Width, Height. Values are in points. 
  811.  
  812. ----------------------------------------
  813. ----------------------------------------
  814. DocSplit
  815. ........................................
  816. Syntax:  DocSplit Percentage 
  817.  
  818.   Splits the current window at the given percentage height. 
  819.  
  820. ----------------------------------------
  821. ----------------------------------------
  822. DocSplit()
  823. ........................................
  824. Syntax:  Num = DocSplit() 
  825.  
  826.   Returns the current window split position as a percentage of the window height, or 0 (zero) if the window isn't split. 
  827.  
  828. ----------------------------------------
  829. ----------------------------------------
  830. DoFieldClick
  831. ........................................
  832. Syntax:  DoFieldClick 
  833.  
  834.  Simulates a mouse button double-click within the GOTOBUTTON and MACROBUTTON 
  835. fields' prompt. See the full Technical Reference for information on these fields. 
  836.  
  837. ----------------------------------------
  838. ----------------------------------------
  839. DoubleUnderline
  840. ........................................
  841. Syntax:  DoubleUnderline [On] 
  842.  
  843.   Without the argument, toggles double underlining for the entire selection. If On is 1, Word makes the entire selection double underlined. If On is 0 (zero), Word removes double under- lining from the entire selection. 
  844.  
  845. ----------------------------------------
  846. ----------------------------------------
  847. DoubleUnderline()
  848. ........................................
  849. Syntax:  Num = DoubleUnderline() 
  850.  
  851.   Returns 0 (zero) if none of the selection is double underlined, 1 if all of the selection is double underlined, or -1 if part of the selection is double underlined or more than one kind of underlining is used. 
  852.  
  853. ----------------------------------------
  854. ----------------------------------------
  855. EditClear 
  856. ........................................
  857. Syntax:  EditClear [Count]
  858.  
  859. Deletes the selection without changing the contents of the Clipboard. If the selection is an insertion point, del-
  860. etes the character to the right of the insertion point. If Count is supplied, deletes the specified # of characters from the right of the insertion point. If Count is a negative #, deletes to the left of the insertion point.
  861. ----------------------------------------
  862. ----------------------------------------
  863. EditCopy 
  864. ........................................
  865. Syntax:  EditCopy 
  866.  
  867.   Equivalent to the Copy command on the Edit menu. Copies the selection to the Clipboard. 
  868.  
  869. ----------------------------------------
  870. ----------------------------------------
  871. EditCut 
  872. ........................................
  873. Syntax:  EditCut 
  874.  
  875.  Equivalent to the Cut command on the Edit menu. The selection is placed on the Clipboard and then deleted. 
  876.  
  877. ----------------------------------------
  878. ----------------------------------------
  879. EditGlossary 
  880. ........................................
  881. Syntax:  EditGlossary Name$, [Context] 
  882.  
  883.   Equivalent to the Edit Glossary dialog box. Used to define, delete, and insert glossary entries. Context can be 0 (zero) for global or 1 for document template. The default is global.The default action is Insert. Append command button name from dlg box (Define or Delete) to change action 
  884.  
  885. ----------------------------------------
  886. ----------------------------------------
  887. EditGoTo 
  888. ........................................
  889. Syntax:  EditGoTo Destination$ 
  890.  
  891.   Equivalent to the Edit Go To dialog box. Destination$ is a bookmark name, a page number or goto string. See the special bookmarks in the preceding section and Moving the Insertion Point in the User's Reference for more information on bookmarks. 
  892.  
  893. ----------------------------------------
  894. ----------------------------------------
  895. EditHeaderFooter 
  896. ........................................
  897. Syntax:  EditHeaderFooter [Type],                 [StartingNum[$]], [NumFormat], 
  898.  [HeaderDistance[$]],FooterDistance[$]],
  899.          [FirstPage], [OddAndEvenPages] 
  900.  
  901.  Equivalent to the Edit Header/Footer dialog box. Opens the header or footer pane for editing. If the argument is 1, the check box is on.If the argument is 0 (zero), the check box is off.
  902.  
  903. ----------------------------------------
  904. ----------------------------------------
  905. EditHeaderFooterLink 
  906. ........................................
  907. Syntax:  EditHeaderFooterLink 
  908.  
  909.   Links the header/footer with a prev-
  910. ious section. This is not possible in the first section of a document. 
  911.  
  912. ----------------------------------------
  913. ----------------------------------------
  914. EditPaste 
  915. ........................................
  916. Syntax:  EditPaste 
  917.  
  918.   Equivalent to the Paste command on the Edit menu. Copies the contents of the Clipboard to the insertion point. 
  919.  
  920. ----------------------------------------
  921. ----------------------------------------
  922. EditPasteLink 
  923. ........................................
  924. Syntax:  EditPasteLink [AutoUpdate] 
  925.  
  926.   Equivalent to the Edit Paste Link dialog box. Pastes a DDE (Dynamic Data Exchange) field. If AutoUpdate is 1, EditPasteLink pastes a DDEAUTO field. 
  927.  
  928.  
  929.  
  930.  
  931.  
  932. ----------------------------------------
  933. ----------------------------------------
  934. EditReplace 
  935. ........................................
  936. Syntax:  EditReplace [Search$],                           [Replace$],[WholeWord],
  937.           [MatchCase],[Confirm],[Format]
  938.  Equivalent to the Edit Replace dialog box. Replaces the Search$ string with 
  939. Replace$. If Search$ and Replace$ are not supplied, the strings used in the previous search and/or replace are used. 
  940.  
  941. ----------------------------------------
  942. ----------------------------------------
  943. EditReplace  (more)
  944. ........................................
  945.  To replace formatting in addition to,  or instead of, text, use EditReplaceChar, EditReplacePara, EditSearchChar, or EditSearchPara first to set up the formatting, then 
  946. run EditReplace or EditSearch with Format set to 1. 
  947.  
  948. ----------------------------------------
  949. ----------------------------------------
  950. EditReplaceChar 
  951. ........................................
  952. Syntax:   EditReplaceChar[Font$],
  953.     [Points[$]],[Color],[Bold],[Italic],
  954.        [SmallCaps],[Hidden],[Underline],
  955.       [WordUnderline],[DoubleUnderline],
  956.               [Position[$]],[Spacing[$]]
  957.  
  958.   Dialog box equivalent; defines the character formatting EditReplace uses to format replacement text. See "Format-
  959. Character".
  960. ----------------------------------------
  961. ----------------------------------------
  962. EditReplacePara 
  963. ........................................
  964. Syntax:  EditReplacePara [Alignment],        [LeftIndent[$]],[RightIndent[$]],
  965.            [FirstIndent[$]],[Before[$]],
  966.             [After[$]],[LineSpacing[$]],
  967.                 [Style$],[KeepTogether],
  968.                 [KeepWithNext],[Border],
  969.        [Pattern],[PageBreak],[NoLineNum]
  970.  
  971.  Dialog box equivalent; defines para- graph formatting EditReplace uses to format replacement text.
  972. ----------------------------------------
  973. ----------------------------------------
  974. EditSearch 
  975. ........................................
  976. Syntax: EditSearch[Search$],[WholeWord],
  977.         [MatchCase],[Direction],[Format]
  978.  
  979.   Equivalent to the Edit Search dialog box.Searches for the specified Search$.
  980. The arguments correspond to a check box.
  981. If the argument is 1, the check box is on. If the argument is 0 (zero), the check box is off.
  982. ----------------------------------------
  983. ----------------------------------------
  984. EditSearchChar 
  985. ........................................
  986. Syntax:   EditSearchChar  [Font$],
  987.            [Points[$]], [Color], [Bold],
  988.           [Italic],[SmallCaps],[Hidden],
  989.            [Underline], [WordUnderline],
  990.                       [DoubleUnderline],
  991.              [Position[$]], [Spacing[$]]
  992.  
  993.  Dialog box equivalent;defines the char-
  994. acter formatting EditSearch and Edit-
  995. Replace use to find formatted text. See
  996. "FormatCharacters".
  997. ----------------------------------------
  998. ----------------------------------------
  999. EditSearchFound() 
  1000. ........................................
  1001. Syntax:  Log = EditSearchFound() 
  1002.  
  1003.  Returns -1 if the last EditSearch was successful. Returns 0 (zero) if not. 
  1004.  
  1005. ----------------------------------------
  1006. ----------------------------------------
  1007. EditSearchFound()  (Example)
  1008. ........................................
  1009. Sub MAIN
  1010. Count = 0 
  1011. StartOfDocument 
  1012. EditSearch "macro" 
  1013. While EditSearchFound() 
  1014.    Count = Count + 1 
  1015.    EditSearch "macro" 
  1016. Wend 
  1017. Print "macro was found ";Count;" times" 
  1018. End Sub
  1019. ----------------------------------------
  1020. ----------------------------------------
  1021. EditSearchPara 
  1022. ........................................
  1023. Syntax:  EditSearchPara[Alignment],
  1024.        [LeftIndent[$]],[RightIndent[$]],
  1025.            [FirstIndent[$]],[Before[$]],
  1026.             [After[$]],[LineSpacing[$]],
  1027.                 [Style$],[KeepTogether],
  1028.       [KeepWithNext],[Border],[Pattern],
  1029.                  [PageBreak],[NoLineNum]
  1030.  
  1031.  Dialog box equivalent; defines the para
  1032. graph formatting EditSearch and EditRep-
  1033. lace use to find formatted text.
  1034. ----------------------------------------
  1035. ----------------------------------------
  1036. EditSelectAll 
  1037. ........................................
  1038. Syntax:  EditSelectAll 
  1039.  
  1040.   Selects the entire document. 
  1041.  
  1042. ----------------------------------------
  1043. ----------------------------------------
  1044. EditSummaryInfo 
  1045. ........................................
  1046. Syntax:   EditSummaryInfo[Title$],
  1047.        [Subject$],[Author$],[Keywords$],
  1048.    [Comments$],[Directory$],[Template$],
  1049.          [CreateDate$],[LastSavedDate$],
  1050.         [LastSavedBy$],[RevisionNumber],
  1051.          [EditTime$],[LastPrintedDate$],
  1052.                   [NumPages],[NumWords],
  1053.                   [NumChars],[FileName$]
  1054.   Equivalent to the Edit Summary Info dialog box.All options in Stat dlg box are read-only except for EditTime.
  1055. ----------------------------------------
  1056. ----------------------------------------
  1057. EditTable 
  1058. ........................................
  1059. Syntax: EditTable[Modify],[ShiftCells] 
  1060.  
  1061.   Equivalent to the Edit Table dialog box. Modify is 0 (zero) for Row, 1 for Column, or 2 for Selection. ShiftCells is 0 for Horizontally or 1 for Vertic-
  1062. ally. Can append Delete,MergeCells, or SplitCells command button name.
  1063.  
  1064. ----------------------------------------
  1065. ----------------------------------------
  1066. EditUndo 
  1067. ........................................
  1068. Syntax:  EditUndo 
  1069.  
  1070.  Equivalent to the Undo command on the Edit menu. Undoes the last action, if possible.You can undo certain Word actions, such as Cut and Paste.Some actions can't be undone.
  1071.  
  1072. ----------------------------------------
  1073. ----------------------------------------
  1074. EmptyBookmark() 
  1075. ........................................
  1076. Syntax:  Log = EmptyBookmark(Name$) 
  1077.  
  1078.   Returns -1 if Name$ is empty (an insertion point), or 0 (zero) if Name$ is not empty. 
  1079.  
  1080. ----------------------------------------
  1081. ----------------------------------------
  1082. EndOfColumn 
  1083. ........................................
  1084. Syntax:  EndOfColumn [Select] 
  1085.  
  1086.   Moves the insertion point to the bottom cell in the table column. If Select is a nonzero value, the selection is extended. 
  1087.  
  1088. ----------------------------------------
  1089. ----------------------------------------
  1090. EndOfDocument
  1091. ........................................
  1092. Syntax:  EndOfDocument [Select] 
  1093.  
  1094.   Moves the selection to the end of the document. If Select is a nonzero value the selection is extended. 
  1095.  
  1096. ----------------------------------------
  1097. ----------------------------------------
  1098. EndOfLine
  1099. ........................................
  1100. Syntax:  EndOfLine [Select] 
  1101.  
  1102.   Moves the selection to the end of the line.If Select is a nonzero value, the selection is extended. 
  1103.  
  1104. ----------------------------------------
  1105. ----------------------------------------
  1106. EndOfRow
  1107. ........................................
  1108. Syntax:  EndOfRow [Select] 
  1109.  
  1110.   Moves the selection to the end of the last cell in the table row. If Select is a nonzero value, the selection is extended. 
  1111.  
  1112. ----------------------------------------
  1113. ----------------------------------------
  1114. EndOfWindow 
  1115. ........................................
  1116. Syntax:  EndOfWindow [Select] 
  1117.  
  1118.   Moves the selection to the end of the window. If Select is a nonzero value, the selection is extended. 
  1119.  
  1120. ----------------------------------------
  1121. ----------------------------------------
  1122. Eof()
  1123. ........................................
  1124. Syntax:  Log = Eof(StreamNumber) 
  1125.  
  1126.   Returns -1 when the end of the file attached to the stream number has been reached. 
  1127.  
  1128. ----------------------------------------
  1129. ----------------------------------------
  1130. Err
  1131. ........................................
  1132. Syntax:  Err 
  1133.  
  1134.   This is a special variable that contains the error code for the most recent error condition. 
  1135.  
  1136. ----------------------------------------
  1137. ----------------------------------------
  1138. Error
  1139. ........................................
  1140. Syntax:  Error ErrorNumber 
  1141.  
  1142.   Displays a message corresponding to an error situation. ErrorNumber is an error code. 
  1143.  
  1144. ----------------------------------------
  1145. ----------------------------------------
  1146. ExistingBookmark() 
  1147. ........................................
  1148. Syntax:  ExistingBookmark(Bookmark$) 
  1149.  
  1150.   Returns -1 if Bookmark$ exists, or 0 (zero) if not. 
  1151.  
  1152. ----------------------------------------
  1153. ----------------------------------------
  1154. ExpandGlossary
  1155. ........................................
  1156. Syntax:  ExpandGlossary 
  1157.  
  1158.   Expands the word closest to the insertion point into the corresponding glossary text. 
  1159.  
  1160. ----------------------------------------
  1161. ----------------------------------------
  1162. ExtendSelection 
  1163. ........................................
  1164. Syntax:  ExtendSelection [Character$] 
  1165.  
  1166.   Turns on extend mode, if it is not already turned on. If extend mode is already turned on, selection is extended to next unit (char->word->
  1167. sentence->paragraph). If Character$ is specified, the selection is extended to that character.
  1168.  
  1169. ----------------------------------------
  1170. ----------------------------------------
  1171. File1 
  1172. ........................................
  1173. Syntax:  File1 
  1174.  
  1175.   Equivalent to selecting the first listed file on the File menu. Opens the first file. An error is generated if you attempt to open a nonexistent file slot. For example, you cannot 
  1176. use File4 if only three files are listed under the File menu. 
  1177.  
  1178. ----------------------------------------
  1179. ----------------------------------------
  1180. File2 
  1181. ........................................
  1182. Syntax:  File2 
  1183.  
  1184.   Equivalent to selecting the second listed file on the File menu. Opens the second file. An error is generated if you attempt to open a nonexistent file slot. For example, you cannot use File4 if only three files are listed under the File menu. 
  1185.  
  1186. ----------------------------------------
  1187. ----------------------------------------
  1188. File3
  1189. ........................................
  1190. Syntax:  File3 
  1191.  
  1192.   Equivalent to selecting the third listed file on the File menu. Opens the third file. An error is generated if you attempt to open a nonexistent file slot. For example, you cannot 
  1193. use File4 if only three files are listed under the File menu. 
  1194.  
  1195. ----------------------------------------
  1196. ----------------------------------------
  1197. File4
  1198. ........................................
  1199. Syntax:  File4 
  1200.  
  1201.   Equivalent to selecting the fourth listed file on the File menu. Opens the fourth file. An error is generated if you attempt to open a nonexistent file slot. For example, you cannot 
  1202. use File4 if only three files are listed under the File menu. 
  1203.  
  1204. ----------------------------------------
  1205. ----------------------------------------
  1206. FileClose
  1207. ........................................
  1208. Syntax:  FileClose [Save] 
  1209.  
  1210.   Equivalent to the Close command on the File menu. Closes the current file and associated windows. The Save argument determines whether a save is forced: 1 forces a save, 2 forces no save, 0 prompts the user to save edited documents.
  1211.  
  1212. ----------------------------------------
  1213. ----------------------------------------
  1214. FileExit
  1215. ........................................
  1216. Syntax:  FileExit [Save] 
  1217.  
  1218.   Equivalent to the Exit command on the File menu. Quits Word. If any open documents have been edited and Save is omitted or is 0 (zero), you are prompted to save each changed document.
  1219. If Save is 1, all edited documents are automatically saved before exiting.If Save is 2, the documents are not saved.
  1220.  
  1221. ----------------------------------------
  1222. ----------------------------------------
  1223. FileFind 
  1224. ........................................
  1225. Syntax:  FileFind[SortBy],[SearchList$],
  1226.           [Title$],[Subject$],[Author$],
  1227.          [Keywords$],[SavedBy$],[Text$],
  1228.     [DateCreatedFrom$],[DateCreatedTo$],
  1229.         [DateSavedFrom$],[DateSavedTo$],
  1230.                [MatchCase],[SearchAgain]
  1231.  
  1232.   Equivalent to the File Find dialog box. It can be used to change the search criteria in subsequent FileFind statements.
  1233. ----------------------------------------
  1234. ----------------------------------------
  1235. FileName$() 
  1236. ........................................
  1237. Syntax:  A$ = FileName$(n) 
  1238.  
  1239.   Returns the nth file in the file list. If n is 0 (zero), the name of the current file is returned. If n is greater than the number of files in the file cache, an error is generated. If there is no current document, FileName$(0) returns an empty string.
  1240.  
  1241.  
  1242. ----------------------------------------
  1243. ----------------------------------------
  1244. FileNew 
  1245. ........................................
  1246. Syntax:  FileNew[NewTemplate],
  1247.            [Template$] 
  1248.  
  1249.  Equivalent to the File New dialog box. 
  1250.  
  1251. ----------------------------------------
  1252. ----------------------------------------
  1253. FileOpen 
  1254. ........................................
  1255. Syntax:  FileOpen Name$, [ReadOnly] 
  1256.  
  1257.   Equivalent to the File Open dialog box. Opens the named document. An error is generated if the document does not exist. If ReadOnly is 1, the document is opened as read-only.
  1258. ----------------------------------------
  1259. ----------------------------------------
  1260. FilePrint 
  1261. ........................................
  1262. Syntax:  FilePrint [Type],[NumCopies],
  1263.         [Range],[From$],[To$],[Reverse],
  1264.      [Draft],[UpdateFields],[PaperFeed],
  1265.    [Summary],[Annotations],[ShowHidden],
  1266.                  [ShowCodes],[FileName$]
  1267.  
  1268.   Equivalent to the File Print dialog box. 
  1269. ----------------------------------------
  1270. ----------------------------------------
  1271. FilePrinterSetup 
  1272. ........................................
  1273. Syntax:  FilePrinterSetup [Printer$] 
  1274.  
  1275.   Equivalent to the File Printer Setup dialog box. Printer$ is the name of the new printer to be activated. Enter this argument exactly as it appears in the File Printer Setup dialog box. The Setup command button name can be append-
  1276. ed to display the dlg box showing the printer options.
  1277. ----------------------------------------
  1278. ----------------------------------------
  1279. FilePrintMerge 
  1280. ........................................
  1281. Syntax:  FilePrintMerge [From], [To] 
  1282.  
  1283.   Equivalent to the File Print Merge dialog box. If From or To is nonzero, Word merges the specified records only. 
  1284. The New Document command button name can be appended to direct the output to a new document. 
  1285.  
  1286. ----------------------------------------
  1287. ----------------------------------------
  1288. FilePrintPreview 
  1289. ........................................
  1290. Syntax:  FilePrintPreview [On] 
  1291.  
  1292.   Equivalent to the Print Preview command on the File menu. Without On, toggles print preview mode. If On is nonzero, turns on print preview mode; if On is 0 (zero), turns off print preview mode. 
  1293.  
  1294. ----------------------------------------
  1295. ----------------------------------------
  1296. FilePrintPreviewBoundaries 
  1297. ........................................
  1298. Syntax:  FilePrintPreviewBoundaries[On] 
  1299.  
  1300.   Displays the text boundaries if On is nonzero; turns off display if On is 0 (zero). If On is omitted, toggles the display of text boundaries. 
  1301.  
  1302. ----------------------------------------
  1303. ----------------------------------------
  1304. FilePrintPreviewPages 
  1305. ........................................
  1306. Syntax:  FilePrintPreviewPages [Pages] 
  1307.  
  1308.  Without the argument, toggles display between one and two pages. 
  1309. Pages:
  1310. 0   Toggles the display state (default)
  1311. 1   One page
  1312. 2   Two pages
  1313.  
  1314. ----------------------------------------
  1315. ----------------------------------------
  1316. Files$() 
  1317. ........................................
  1318. Syntax:  A$ = Files$(FileSpec$) 
  1319.  
  1320.   Returns the first filename matching FileSpec$. If FileSpec$ is not suppl-
  1321. ied, the next file matching the last used FileSpec$ is returned. This func-
  1322. tion can be used to get a list of files matching a FileSpec$ by specify- ing the FileSpec$ on the first time and omitting it thereafter. File$(".")
  1323. returns current dir. (No match => "")
  1324. ----------------------------------------
  1325. ----------------------------------------
  1326. FileSave 
  1327. ........................................
  1328. Syntax:  FileSave 
  1329.  
  1330.   Equivalent to the Save command on the File menu. Saves the current document. 
  1331.  
  1332. ----------------------------------------
  1333. ----------------------------------------
  1334. FileSaveAll 
  1335. ........................................
  1336. Syntax:  FileSaveAll [Save] 
  1337.  
  1338.   Equivalent to the Save All command on the File menu. Prompts the user to save all changed files including NORMAL.DOT. If Save is 1, all edited documents are automatically saved. If Save is 2, the documents are not saved. If Save is 0 or omitted, Word prompts the user to save all changed files.
  1339. ----------------------------------------
  1340. ----------------------------------------
  1341. FileSaveAs 
  1342. ........................................
  1343. Syntax: FileSaveAs [Name$],[Format],
  1344.    [FastSave],[CreateBackup],[LockAnnot]
  1345.  Equivalent to the File Save As dialog box. Saves the current document with a new name and/or format.Name$ specifies the new name. Format specifies the new format:
  1346. 0 Normal      4 Text(PC)
  1347. 1 DOT         5 T+B(PC)
  1348. 2 Text        6 RTF
  1349. 3 Text+Breaks   (list others in WIN.INI)
  1350. ----------------------------------------
  1351. ----------------------------------------
  1352. Font 
  1353. ........................................
  1354. Syntax:  Font Name$, [Size] 
  1355.  
  1356.   Applies the named font to the selection. You can include the Size argument instead of following this statement with the FontSize statement. 
  1357.  
  1358. ----------------------------------------
  1359. ----------------------------------------
  1360. Font$() 
  1361. ........................................
  1362. Syntax:  A$ = Font$() or Font$(Count)
  1363.  
  1364.   Returns the font name of the current selection. If the selection has more than one font, a null string is returned. If Count is supplied, Font$() returns the name of the font 
  1365. Count. Count must be in the range 1 to CountFonts(). 
  1366.  
  1367.  
  1368. ----------------------------------------
  1369. ----------------------------------------
  1370. FontSize 
  1371. ........................................
  1372. Syntax:  FontSize Size 
  1373.  
  1374.   Sets the size of the current selection in points. 
  1375.  
  1376. ----------------------------------------
  1377. ----------------------------------------
  1378. FontSize() 
  1379. ........................................
  1380. Syntax:  Num = FontSize() 
  1381.  
  1382.   Returns the font size of the current selection. If the selection has more than one font size, 0 (zero) is returned. 
  1383.  
  1384. ----------------------------------------
  1385. ----------------------------------------
  1386. For...Next 
  1387. ........................................
  1388. Syntax:
  1389.     For CounterVariable = Start To End
  1390.                        [Step Increment] 
  1391.     Statement(s) 
  1392.     Next [CounterVariable] 
  1393.  Executes the statements between For and Next as many times as it takes the 
  1394. CounterVariable to go from the Start value to the End value. The Increment is the value to increment the counter
  1395. (usually 1).
  1396. ----------------------------------------
  1397. ----------------------------------------
  1398. FormatCharacter 
  1399. ........................................
  1400. Syntax:  FormatCharacter[Font$],
  1401.              [Points[$]],[Color],[Bold],
  1402.           [Italic],[SmallCaps],[Hidden],
  1403.             [Underline],[WordUnderline],
  1404.         [DoubleUnderline],[Position[$]],
  1405.                             [Spacing[$]]
  1406.   Equivalent to the Format Character dialog box.Applies character format- ting to the selection.Some arguments take measurements in points; others arg-
  1407. uments correspond to a check box.
  1408. ----------------------------------------
  1409. ----------------------------------------
  1410. FormatDefineStyles 
  1411. ........................................
  1412. Syntax: FormatDefineStyles Name$,
  1413.                 [BasedOn$],[NextStyle$],
  1414.              [AddToTemplate],[NewName$],
  1415.                     [FileName$],[Source]
  1416. Equivalent to the Format Define Styles dialog box. Defines a new style with the specified Name$. If a style with that name already exists, that style is made the current style.To redefine an existing style, include the specific
  1417. arguments with FormatDefineStyles st'mnt
  1418. ----------------------------------------
  1419. ----------------------------------------
  1420. FormatDefineStyles (more) 
  1421. ........................................
  1422.   The BasedOn$ argument specifies a style on which to base the new style. The NextStyle$ argument specifies the style to be applied after the new style. AddToTemplate can be 0 for the document only, or 1 for the document and its template. The Delete, Rename, and Merge command button names can be appended. The NewName$ argument speci-
  1423. fies a new name for the style;it is used
  1424. only with the Rename command button.
  1425. ----------------------------------------
  1426. ----------------------------------------
  1427. FormatDefineStyles (still more)
  1428. ........................................
  1429.   The FileName$ argument is used only with the Merge command button. It specifies the template or document whose style sheet is to be merged with that of the current document or template.Source is used only in conjunction with the Merge command button name, and can be 0 (from the current DOC/DOT to a specified one) or 1
  1430. (from the specified to the current one).
  1431.  
  1432. ----------------------------------------
  1433. ----------------------------------------
  1434. FormatDefineStylesChar 
  1435. ........................................
  1436.   Dialog box equivalent; defines the current style with the specified character properties. This statement takes the same arguments as its corresponding format function. See 
  1437. "FormatCharacter".
  1438.  
  1439. ----------------------------------------
  1440. ----------------------------------------
  1441. FormatDefineStylesPara 
  1442. ........................................
  1443.   Dialog box equivalent; defines the current style with the specified paragraph properties. This statement takes the same arguments as its corresponding format function. See "FormatParagraph". 
  1444.  
  1445. ----------------------------------------
  1446. ----------------------------------------
  1447. FormatDefineStylesPosition 
  1448. ........................................
  1449.   Dialog box equivalent; defines the current style with the specified position properties. This statement takes the same arguments as its corresponding format function. See 
  1450. "FormatPosition". 
  1451.  
  1452. ----------------------------------------
  1453. ----------------------------------------
  1454. FormatDefineStylesTabs 
  1455. ........................................
  1456.   Dialog box equivalent; defines the current style with the specified tab properties. This statement takes the same arguments as its corresponding format function. See 
  1457. "FormatTabs".
  1458.  
  1459. ----------------------------------------
  1460. ----------------------------------------
  1461. FormatDocument 
  1462. ........................................
  1463. Syntax:   FormatDocument[PageWidth[$]],
  1464.            [PageHeight[$]],[DefTabs[$]],
  1465.        [TopMargin[$]],[BottomMargin[$]],
  1466.        [LeftMargin[$]],[RightMargin[$]],
  1467.             [Gutter[$]],[MirrorMargins],
  1468.          [FootnotesAt],[StartingNum[$]],
  1469.                [RestartNum],[Template$],
  1470.                           [WidowControl]
  1471.   Equivalent to the Format Document dlg box.Applies document Formatting properties.
  1472. ----------------------------------------
  1473. ----------------------------------------
  1474. FormatDocument (more)
  1475. ........................................
  1476.   Some arguments take measurements in points. Other arguments correspond to a 
  1477. check box. To set the global or template default,append the SetDefault command button name to this statement. This is a powerful argument that changes the default document properties 
  1478. to those specified in the statement. 
  1479.  
  1480. ----------------------------------------
  1481. ----------------------------------------
  1482. FormatParagraph 
  1483. ........................................
  1484. Syntax:  FormatParagraph [Alignment],
  1485.        [LeftIndent[$]],[RightIndent[$]],
  1486.            [FirstIndent[$]],[Before[$]],
  1487.             [After[$]],[LineSpacing[$]],
  1488.                 [Style$],[KeepTogether],
  1489.       [KeepWithNext],[Border],[Pattern],
  1490.                  [PageBreak],[NoLineNum]
  1491.   Equivalent to the Format Paragraph dialog box. Applies paragraph formatting. 
  1492. ----------------------------------------
  1493. ----------------------------------------
  1494. FormatParagraph (more)
  1495. ........................................
  1496.  The LeftIndent[$], RightIndent[$] and FirstIndent[$] arguments specify the amount of left, right, and first-line indents, respectively. The Before[$] and After[$] arguments specify the amount of spacing above and below a paragraph,respectively. The Line-
  1497. Spacing[$] argument specifies the amount of spacing for all lines in a paragraph.The Style$ arg. specifies a 
  1498. style to be applied to a paragraph.
  1499. ----------------------------------------
  1500. ----------------------------------------
  1501. FormatParagraph (still more)
  1502. ........................................
  1503.   The KeepTogether and KeepWithNext arguments prevent page breaks within a 
  1504. paragraph and between paragraphs, respectively. The PageBreak argument inserts a page break before printing the paragraph. The NoLineNum argument turns off line numbering for the para- graph.
  1505.  
  1506.  
  1507. ----------------------------------------
  1508. ----------------------------------------
  1509. FormatPicture 
  1510. ........................................
  1511. Syntax: FormatPicture [Border],[ScaleY],
  1512.     [ScaleX],[CropTop[$]],[CropLeft[$]],
  1513.           [CropBottom[$]],[CropRight[$]]
  1514.  
  1515.   Equivalent to the Format Picture dialog box. Applies picture formatting properties. Some arguments take measurements in points.Other arguments correspond to check boxes.
  1516.  
  1517. ----------------------------------------
  1518. ----------------------------------------
  1519. FormatPosition 
  1520. ........................................
  1521. Syntax:  FormatPosition [Horizontal[$]],
  1522.             [HRelativeTo],[Vertical[$]],
  1523.        [VRelativeTo],[DistanceFromText],
  1524.                      [ParagraphWidth[$]]
  1525.   Equivalent to the Format Position dlg box. Applies position formatting to the selected paragraphs. The Reset command button name can be appended to cancel the position formatiing of the paragraph.
  1526. ----------------------------------------
  1527. ----------------------------------------
  1528. FormatSection 
  1529. ........................................
  1530. Syntax:   FormatSection [Columns],
  1531.            [ColumnSpacing[$]],[ColLine],
  1532.              [SectionStart],[Footnotes],
  1533.              [LineNum],[StartingNum[$]],
  1534.                 [FromText[$]],[CountBy],
  1535.                    [NumMode],[VertAlign]
  1536.   Equivalent to the Format Section dlg box.Applies section format properties to the selection. Some arguments take measurements in points or numbers. Other
  1537. arguments coorespond to check boxes.
  1538. ----------------------------------------
  1539. ----------------------------------------
  1540. FormatStyles 
  1541. ........................................
  1542. Syntax:  FormatStyles Name$, [Create]
  1543.  
  1544.   Equivalent to the Format Styles dlg box. Applies the style in Name$ to the selected paragraphs.If the style does not exist and Create is not specified or is 0 (zero), an error is generated. If Create is specified as 1, the style is created with the properties of the selection, if it doesn't already exist.
  1545.  
  1546. ----------------------------------------
  1547. ----------------------------------------
  1548. FormatTable 
  1549. ........................................
  1550. Syntax:FormatTable[FromColumn],[Column],
  1551.     [ColumnWidth],[SpaceBetweenCols[$]],
  1552.      [IndentRows[$]],[MinimumRowHeight],
  1553.             [OutlineBorder],[TopBorder],
  1554.           [BottomBorder],[InsideBorder],
  1555.              [LeftBorder],[RightBorder],
  1556.                    [AlignRows],[ApplyTo]
  1557.  Equivalent to the Format Table dialog box. When recording, pressing the Next or Prev Columns command button records a new FormatTable command.
  1558. ----------------------------------------
  1559. ----------------------------------------
  1560. FormatTabs 
  1561. ........................................
  1562. Syntax:  FormatTabs [Position],[Align],                                 [Leader] 
  1563.   Equivalent to the Format Tabs dialog box. Position is a measurement in points.Set is the default action.Append 
  1564. Clear/ClearAll button name to Clear[All]
  1565. Align argument:     Leader argument:
  1566. 0 Left              0 none
  1567. 1 Centered          1 Dot
  1568. 2 Right             2 Dash
  1569. 3 Decimal           3 Underline 
  1570. ----------------------------------------
  1571. ----------------------------------------
  1572. Function...End Function 
  1573. ........................................
  1574. Syntax:      
  1575.    Function Name [ParameterList]
  1576.    Statement(s) 
  1577.    End Function
  1578.  
  1579.  Defines a function. The ParameterList is a list of variables, separated by commas, for receiving arguments to the function. See WTR for more information on user-defined functions.
  1580.  
  1581. ----------------------------------------
  1582. ----------------------------------------
  1583. GetBookmark$() 
  1584. ........................................
  1585. Syntax: A$= GetBookmark$(BookmarkName$) 
  1586.  
  1587.   Returns the text at the specified bookmark. 
  1588.  
  1589. ----------------------------------------
  1590. ----------------------------------------
  1591. GetCurValues 
  1592. ........................................
  1593. Syntax:  GetCurValues DialogRecord 
  1594.  
  1595.   Stores in DialogRecord the current values for a previously dimensioned dialog box. 
  1596.  
  1597. ----------------------------------------
  1598. ----------------------------------------
  1599. GetGlossary$() 
  1600. ........................................
  1601. Syntax:A$=GetGlossary$(Name$,[Context]) 
  1602.  
  1603.   Returns the text of the glossary entry in Name$. The Context is 0 (zero) for global (default) or 1 for document template. 
  1604.  
  1605. ----------------------------------------
  1606. ----------------------------------------
  1607. GetProfileString$() 
  1608. ........................................
  1609. Syntax:A$=GetProfileString$([App$],Key$) 
  1610.  
  1611.   Gets a value from the current WIN.INI file. App$ is the name of the Microsoft Windows application. If the application is not specified, the string [Microsoft Word] is used. If the Key$ is not found, the function returns a null string. 
  1612.  
  1613. ----------------------------------------
  1614. ----------------------------------------
  1615. GlossaryName$() 
  1616. ........................................
  1617. Syntax:A$=GlossaryName$(Count,[Context]) 
  1618.  
  1619.   Returns the name of the glossary defined in the given context (global or document template). Count must be in the range from 1 to CountGlossaries (Context). The name is taken from the list in the given context. Context is 0 (zero) for global, 1 for document template.
  1620.  
  1621. ----------------------------------------
  1622. ----------------------------------------
  1623. GoBack 
  1624. ........................................
  1625. Syntax:  GoBack 
  1626.  
  1627.   Toggles among the last three selections where text or formatting has changed. 
  1628.  
  1629. ----------------------------------------
  1630. ----------------------------------------
  1631. Goto 
  1632. ........................................
  1633. Syntax:  Goto Label/LineNumber 
  1634.  
  1635.   Branches unconditionally to a label or line number. 
  1636.  
  1637. ----------------------------------------
  1638. ----------------------------------------
  1639. GroupBox
  1640. ........................................
  1641. Syntax:  GroupBox x, y, dx, dy, Text$ 
  1642.  
  1643.   Creates a box with a title. A Group- Box does not have a result. 
  1644.  
  1645. ----------------------------------------
  1646. ----------------------------------------
  1647. GrowFont 
  1648. ........................................
  1649. Syntax:  GrowFont 
  1650.  
  1651.   Increases the size of the selected font. Can be used either on the selection, or at the insertion point. 
  1652.  
  1653. ----------------------------------------
  1654. ----------------------------------------
  1655. HangingIndent 
  1656. ........................................
  1657. Syntax:  HangingIndent 
  1658.  
  1659.   Sets the indent of the selection to the next tab stop in the first paragraph. Sets the first line of the paragraph flush with the left margin. 
  1660.  
  1661. ----------------------------------------
  1662. ----------------------------------------
  1663. Help 
  1664. ........................................
  1665. Syntax:  Help 
  1666.  
  1667.   Activates Help. Equivalent to pressing F1. 
  1668.  
  1669. ----------------------------------------
  1670. ----------------------------------------
  1671. HelpAbout 
  1672. ........................................
  1673. Syntax:  HelpAbout 
  1674.  
  1675.   Displays a dialog box with the Word version number and copyright information. 
  1676.  
  1677. ----------------------------------------
  1678. ----------------------------------------
  1679. HelpActiveWindow 
  1680. ........................................
  1681. Syntax:  HelpActiveWindow 
  1682.  
  1683.   Activates Help for the active window. 
  1684.  
  1685. ----------------------------------------
  1686. ----------------------------------------
  1687. HelpContext 
  1688. ........................................
  1689. Syntax:  HelpContext 
  1690.  
  1691.   Activates context-sensitive Help. Equivalent to pressing Shift+F1. 
  1692.  
  1693. ----------------------------------------
  1694. ----------------------------------------
  1695. HelpIndex
  1696. ........................................
  1697. Syntax:  HelpIndex 
  1698.  
  1699.   Displays the list of Help topics. 
  1700.  
  1701. ----------------------------------------
  1702. ----------------------------------------
  1703. HelpKeyboard
  1704. ........................................
  1705. Syntax:  HelpKeyboard 
  1706.  
  1707.  Displays list of keyboard Help topics. 
  1708.  
  1709. ----------------------------------------
  1710. ----------------------------------------
  1711. HelpTutorial
  1712. ........................................
  1713. Syntax:  HelpTutorial 
  1714.  
  1715.   Starts the Tutorial. 
  1716.  
  1717. ----------------------------------------
  1718. ----------------------------------------
  1719. HelpUsingHelp
  1720. ........................................
  1721. Syntax:  HelpUsingHelp 
  1722.  
  1723.   Displays Help topics on how to use Help. 
  1724.  
  1725. ----------------------------------------
  1726. ----------------------------------------
  1727. Hidden
  1728. ........................................
  1729. Syntax:  Hidden [On] 
  1730.  
  1731.   Without an argument, toggles hidden text for the entire selection. If On is nonzero, makes the entire selection hidden text if the first character is hidden. If On is 0 (zero), removes hidden text from the entire selection. 
  1732.  
  1733. ----------------------------------------
  1734. ----------------------------------------
  1735. Hidden()
  1736. ........................................
  1737. Syntax:  Num = Hidden() 
  1738.  
  1739.   Returns 0 (zero) if none of the selection is hidden text, 1 if all of the selection is hidden text, or -1 if part of the selection is hidden text. 
  1740.  
  1741. ----------------------------------------
  1742. ----------------------------------------
  1743. HLine
  1744. ........................................
  1745. Syntax:  HLine [Count] 
  1746.  
  1747.   Scrolls horizontally to the right by Count lines. If Count is not Speci- fied, one line is the default. "Lines" mean the amount the screen is scrolled by clicking the mouse in a horizontal scroll bar arrow. A negative Count scrolls to the left.
  1748. ----------------------------------------
  1749. ----------------------------------------
  1750. HPage
  1751. ........................................
  1752. Syntax:  HPage [Count] 
  1753.  
  1754.   Scrolls horizontally by Count screens. If Count is not specified, one screen is the default. A negative Count scrolls to the left. 
  1755.  
  1756. ----------------------------------------
  1757. ----------------------------------------
  1758. HScroll
  1759. ........................................
  1760. Syntax:  HScroll Percentage 
  1761.  
  1762.   Scrolls horizontally the specified percentage of the document width. 
  1763.  
  1764. ----------------------------------------
  1765. ----------------------------------------
  1766. HScroll()
  1767. ........................................
  1768. Syntax:  Num = HScroll() 
  1769.  
  1770.   Returns the current horizontal scroll position as a percentage of the document width. 
  1771.  
  1772. ----------------------------------------
  1773. ----------------------------------------
  1774. IconBarMode
  1775. ........................................
  1776. Syntax:  IconBarMode 
  1777.  
  1778.   Activates icon bar mode. 
  1779.  
  1780. ----------------------------------------
  1781. ----------------------------------------
  1782. If...ElseIf...Else...End If
  1783. ........................................
  1784. Syntax:   If Condition Then Statement(s)
  1785.                     [Else Statement(s)] 
  1786. Syntax:   If Condition1 Then 
  1787.           Statement(s) 
  1788.           [ElseIf Condition2 Then 
  1789.           Statement(s)] 
  1790.           [Else 
  1791.           Statement(s)] 
  1792.           End If
  1793.   The conditions can be any numeric exp-
  1794. ression in WordBASIC.
  1795. ----------------------------------------
  1796. ----------------------------------------
  1797. Indent 
  1798. ........................................
  1799. Syntax:  Indent 
  1800.  
  1801.   Indents the selection. The indent is aligned with the next tab stop. Indent does not change a first-line indent. 
  1802.  
  1803. ----------------------------------------
  1804. ----------------------------------------
  1805. Input
  1806. ........................................
  1807. Syntax: Input[#]StreamNumber,Variable,
  1808.                              [Variable]
  1809.  
  1810.   Reads a line from the file specified by #StreamNumber into the variables listed. The line read from the file is separated into individual values by commas. If a StreamNumber is not specified, you are prompted in the status bar. 
  1811.  
  1812. ----------------------------------------
  1813. ----------------------------------------
  1814. Input$()
  1815. ........................................
  1816. Syntax:  A$ = Input$(n, StreamNumber) 
  1817.  
  1818.   Reads n characters from the file specified by StreamNumber. 
  1819.  
  1820. ----------------------------------------
  1821. ----------------------------------------
  1822. InputBox$()
  1823. ........................................
  1824. Syntax:  A$=InputBox$(Prompt$,[Title$],
  1825.                              [Default$])
  1826.  
  1827.   Displays an editable dialog box. Returns the text that was in the box when OK was chosen. If you specified a default, it is loaded into the dialog box when it is displayed. 
  1828.  
  1829. ----------------------------------------
  1830. ----------------------------------------
  1831. Insert
  1832. ........................................
  1833. Syntax:  Insert Text$ 
  1834.  Inserts the given text at the insert- ion point.Nonprinting characters are inserted as Chr$(n) statements.
  1835. Chr$(x)=> Character inserted:
  1836. Chr$(9)   Tab
  1837. Chr$(11)  Linefeed
  1838. Chr$(30)  Nonbreaking hyphen
  1839. Chr$(31)  Optional hyphen
  1840. Chr$(34)  Quotation marks
  1841. Chr$(60)  Nonbreaking space
  1842. ----------------------------------------
  1843. ----------------------------------------
  1844. InsertBookmark 
  1845. ........................................
  1846. Syntax:  InsertBookmark Name$ 
  1847.  
  1848.   Equivalent to the Insert Bookmark dialog box. Creates or deletes the named bookmark. If the Delete command button is appended, the bookmark is deleted. If Delete is not specified, the bookmark is created at the current selection.If you specify a nonexistent bookmark for deletion, an error is gen-
  1849. erated.
  1850. ----------------------------------------
  1851. ----------------------------------------
  1852. InsertBreak 
  1853. ........................................
  1854. Syntax:  InsertBreak Type 
  1855.   Equivalent to the Insert Break dlg box. Inserts a page, section or column break at the current selection. 
  1856. Type argument:
  1857. 0  Page
  1858. 1  Column
  1859. 2  Next       (Section break)
  1860. 3  Continuous (Section break)
  1861. 4  Even       (Section break)
  1862. 5  Odd        (Section break)
  1863. ----------------------------------------
  1864. ----------------------------------------
  1865. InsertColumnBreak 
  1866. ........................................
  1867. Syntax:  InsertColumnBreak 
  1868.  
  1869.   Inserts a column break at the insertion point. If the insertion point is in a table, the break is inserted above the row in which the insertion point is located. 
  1870.  
  1871. ----------------------------------------
  1872. ----------------------------------------
  1873. InsertDateField
  1874. ........................................
  1875. Syntax:  InsertDateField 
  1876.  
  1877.  Inserts a DATE field at the selection. 
  1878.  
  1879. ----------------------------------------
  1880. ----------------------------------------
  1881. InsertField
  1882. ........................................
  1883. Syntax:  InsertField Field$ 
  1884.  
  1885.   Equivalent to the Insert Field dlg box. Inserts the specified field at the selection. Do not include the field characters {} in Field$.
  1886.  
  1887. ----------------------------------------
  1888. ----------------------------------------
  1889. InsertFieldChars 
  1890. ........................................
  1891. Syntax:  InsertFieldChars 
  1892.  
  1893.   Inserts field characters {} at the selection.
  1894. ----------------------------------------
  1895. ----------------------------------------
  1896. InsertFile
  1897. ........................................
  1898. Syntax: InsertFile Name$,[Range$],[Link]
  1899.  
  1900.   Equivalent to the Insert File dialog box. Inserts the named file at the current selection. Range$ refers to a bookmark if Name$ refers to a Word document.If Name$ refers to another document type (for example, an Excel worksheet), then Range$ refers to a named range. If Link is 1, a link to the
  1901. file is inserted instead of actual file.
  1902. ----------------------------------------
  1903. ----------------------------------------
  1904. InsertFootnote 
  1905. ........................................
  1906. Syntax:  InsertFootnote [Reference$] 
  1907.  
  1908.   Equivalent to the Insert Footnote dialog box. Inserts a footnote at the current selection. Reference$ is footnote reference text that you supply.To insert a footnote separator, continued footnote separator or notice for continued footnotes, append the Separator,ContSeparator or ContNotice command button name.
  1909. ----------------------------------------
  1910. ----------------------------------------
  1911. InsertIndex 
  1912. ........................................
  1913. Syntax:  InsertIndex [Type],
  1914.            [HeadingSeparator],[Replace] 
  1915.  Equivalent to the Insert Index dialog box. Inserts an INDEX field at the current selection. Type is 0 for a normal index (default) or 1 for a run-in index. HeadingSeparator is 0 for none (default), 1 for a blank line, or 2 for a letter.If Replace is 1, the existing index is overwritten. If
  1916. omitted or 0 index is not overwritten.
  1917. ----------------------------------------
  1918. ----------------------------------------
  1919. InsertIndexEntry 
  1920. ........................................
  1921. Syntax:   InsertIndexEntry [Entry$],
  1922.                [Range$],[Bold],[Italic] 
  1923.  
  1924.   Equivalent to the Insert Index Entry dialog box. Inserts an XE field at the current selection. If Entry$ is omitted, the selection is the entry. The arguments correspond to check boxes.
  1925.  
  1926. ----------------------------------------
  1927. ----------------------------------------
  1928. InsertPageBreak 
  1929. ........................................
  1930. Syntax:  InsertPageBreak 
  1931.  
  1932.   Inserts a page break at the current selection. 
  1933.  
  1934. ----------------------------------------
  1935. ----------------------------------------
  1936. InsertPageField
  1937. ........................................
  1938. Syntax:  InsertPageField 
  1939.  
  1940.   Inserts a PAGE field at the current selection. 
  1941.  
  1942. ----------------------------------------
  1943. ----------------------------------------
  1944. InsertPageNumbers
  1945. ........................................
  1946. Syntax: InsertPageNumbers [Type],
  1947.                              [Position] 
  1948.   Dialog box equivalent; inserts a current PAGE field into the header or footer. 
  1949.  
  1950. Type:            Position:
  1951. 0  Header        0  Left-aligned
  1952. 1  Footer        1  Centered
  1953.                  2  Right-aligned
  1954. ----------------------------------------
  1955. ----------------------------------------
  1956. InsertPara 
  1957. ........................................
  1958. Syntax:  InsertPara 
  1959.  
  1960.   Inserts a paragraph mark at the current selection. 
  1961.  
  1962. ----------------------------------------
  1963. ----------------------------------------
  1964. InsertPicture 
  1965. ........................................
  1966. Syntax:  InsertPicture [Name$] 
  1967.  
  1968.   Equivalent to the Insert Picture dialog box. Inserts an IMPORT field at the current selection. If Name$ is not supplied, a 1-inch graphic frame with a single border is inserted. 
  1969.  
  1970. ----------------------------------------
  1971. ----------------------------------------
  1972. InsertTable 
  1973. ........................................
  1974. Syn: InsertTable [NumColumns],[NumRows],
  1975.       [InitialColWidth[$]],[ConvertFrom]
  1976.  
  1977.   Equivalent to the Insert Table dialog box. Choosing Format is record- ed as an InsertTable statement follow- ed by a FormatTable statement. 
  1978.  
  1979. ----------------------------------------
  1980. ----------------------------------------
  1981. InsertTableOfContents
  1982. ........................................
  1983. Syntax:  InsertTableOfContents [Source],
  1984.                    [From],[To],[Replace]
  1985.   Equivalent to the Insert Table Of Contents dialog box. Inserts a TOC field at the current selection. Source is 0 (zero) for outline headings, or 1 for table entry fields. From and To refer to the outline levels used. If Replace is 1, the existing table of contents is overwritten. If omitted or
  1986. 0, the table is not overwritten.
  1987. ----------------------------------------
  1988. ----------------------------------------
  1989. InsertTableToText
  1990. ........................................
  1991. Syntax:  InsertTableToText [ConvertTo] 
  1992.  
  1993.   Dialog box equivalent; converts the selected cells to normal text. ConvertTo may be 0 (zero) for paragraphs, 1 for tab-delimited text, or 2 for comma-delimited text. 
  1994.  
  1995. ----------------------------------------
  1996. ----------------------------------------
  1997. InsertTimeField
  1998. ........................................
  1999. Syntax:  InsertTimeField 
  2000.  
  2001.   Inserts a TIME field at the current selection. 
  2002.  
  2003. ----------------------------------------
  2004. ----------------------------------------
  2005. Instr()
  2006. ........................................
  2007. Syn: Num=Instr([Index],Source$,Search$) 
  2008. Hint: Instr() <=> "IN STRing"
  2009.  
  2010.   Searches for Search$ in Source$. Returns the number of the character where Search$ started, or 0 (zero) if Search$ is not found in Source$. If Index is supplied, the search starts at character Index. 
  2011.  
  2012. ----------------------------------------
  2013. ----------------------------------------
  2014. Int()
  2015. ........................................
  2016. Syntax:  Num = Int(n) 
  2017.  
  2018.   Returns the integer part of n. 
  2019.  
  2020. ----------------------------------------
  2021. ----------------------------------------
  2022. IsDirty()
  2023. ........................................
  2024. Syntax:  Log = IsDirty() 
  2025.  
  2026.  Returns -1 if the document has been changed (made dirty) since the last save, 0 (zero) if the document has not been changed. 
  2027.  
  2028. ----------------------------------------
  2029. ----------------------------------------
  2030. Italic
  2031. ........................................
  2032. Syntax:  Italic [On] 
  2033.  
  2034.   Without the argument, toggles italic for the entire selection. If On is nonzero, makes the entire selection italic. If On is 0 (zero), removes italic from the entire selection. 
  2035.  
  2036. ----------------------------------------
  2037. ----------------------------------------
  2038. Italic()
  2039. ........................................
  2040. Syntax:  Num = Italic() 
  2041.  
  2042.   Returns 0 (zero) if none of the selection is italic, 1 if all of the selection is italic, or -1 if part of the selection is italic. 
  2043.  
  2044. ----------------------------------------
  2045. ----------------------------------------
  2046. JustifyPara 
  2047. ........................................
  2048. Syntax:  JustifyPara 
  2049.  
  2050.  Justifies the selected paragraphs. 
  2051.  
  2052. ----------------------------------------
  2053. ----------------------------------------
  2054. JustifyPara()
  2055. ........................................
  2056. Syntax:  Num = JustifyPara() 
  2057.  
  2058.  Returns 0 (zero) if none of the selected paragraphs are justified, 1 if all of the selected 
  2059. paragraphs are justified, or -1 if more than one kind of paragraph alignment is used. 
  2060.  
  2061. ----------------------------------------
  2062. ----------------------------------------
  2063. Kill
  2064. ........................................
  2065. Syntax:  Kill Name$ 
  2066.  
  2067.  Deletes the file specified by Name$. 
  2068.  
  2069. ----------------------------------------
  2070. ----------------------------------------
  2071. LCase$()
  2072. ........................................
  2073. Syntax:  A$ = LCase$(Source$) 
  2074.  
  2075. Returns Source$ converted to lowercase. 
  2076.  
  2077. ----------------------------------------
  2078. ----------------------------------------
  2079. Left$()
  2080. ........................................
  2081. Syntax:  A$ = Left$(Source$, n) 
  2082.  
  2083.  Returns the leftmost n characters of Source$. 
  2084.  
  2085. ----------------------------------------
  2086. ----------------------------------------
  2087. LeftPara
  2088. ........................................
  2089. Syntax:  LeftPara 
  2090.  
  2091.  Left aligns the selected paragraphs. 
  2092.  
  2093. ----------------------------------------
  2094. ----------------------------------------
  2095. LeftPara()
  2096. ........................................
  2097. Syntax:  Num = LeftPara() 
  2098.  
  2099.   Returns 0 (zero) if none of the selected paragraphs are left aligned, 1 if all of the 
  2100. selected paragraphs are left aligned, or -1 if more than one kind of paragraph alignment 
  2101. is used. 
  2102.  
  2103. ----------------------------------------
  2104. ----------------------------------------
  2105. Len()
  2106. ........................................
  2107. Syntax:  Num = Len(Source$) 
  2108.  
  2109.  Returns the number of characters in Source$. 
  2110.  
  2111. ----------------------------------------
  2112. ----------------------------------------
  2113. Let
  2114. ........................................
  2115. Syntax:  [Let] Var = Expression 
  2116.  
  2117.  Assigns the value of an expression to a variable. Let is optional. 
  2118.  
  2119. ----------------------------------------
  2120. ----------------------------------------
  2121. Line Input
  2122. ........................................
  2123. Syntax:Line Input [#]StreamNumber,
  2124.                               Variable$ 
  2125.   Reads an entire line from the file specified by StreamNumber and puts the result in the specified string variable.
  2126. If a StreamNumber is not specified,you are prompted in the status bar.Similar to the Input statement but LineInput doesn't break the line into separate values at commas.
  2127.  
  2128. ----------------------------------------
  2129. ----------------------------------------
  2130. LineDown
  2131. ........................................
  2132. Syntax:  LineDown [Repeat], [Select] 
  2133.  
  2134.  Moves the selection down by Repeat lines. If the Repeat argument is omitted, 1 is assumed. If Select is nonzero, the selection is extended down by Repeat lines. 
  2135.  
  2136. ----------------------------------------
  2137. ----------------------------------------
  2138. LineDown()
  2139. ........................................
  2140. Syntax: Log=LineDown([Repeat],[Select]) 
  2141.  
  2142.   Moves the selection down by Repeat lines. Returns 0 (zero) if the action cannot be completed. 
  2143.  
  2144. ----------------------------------------
  2145. ----------------------------------------
  2146. LineUp
  2147. ........................................
  2148. Syntax:  LineUp [Repeat], [Select] 
  2149.  
  2150.   Moves the selection up by Repeat lines. If the Repeat argument is omitted, 1 is assumed. If Select is nonzero, the selection is extended up by Repeat lines. If Select is 0 (zero) or omitted, the selection is not extended. 
  2151.  
  2152. ----------------------------------------
  2153. ----------------------------------------
  2154. LineUp()
  2155. ........................................
  2156. Syntax: Log = LineUp([Repeat],[Select]) 
  2157.  
  2158.   Moves the selection up by Repeat lines. Returns 0 (zero) if the action cannot be completed. For example, the function would return 0 if the insertion point is at the beginning of the document. 
  2159.  
  2160. ----------------------------------------
  2161. ----------------------------------------
  2162. LockFields
  2163. ........................................
  2164. Syntax:  LockFields 
  2165.  
  2166.  Prevents the fields within the select-
  2167. ion from being updated. 
  2168. ----------------------------------------
  2169. ----------------------------------------
  2170. Lof() 
  2171. ........................................
  2172. Syntax:  Num = Lof(StreamNumber) 
  2173.  
  2174.   Returns the length of the file, in bytes. 
  2175.  
  2176. ----------------------------------------
  2177. ----------------------------------------
  2178. MacroAssignToKey
  2179. ........................................
  2180. Syn: MacroAssignToKey [Name$],[KeyCode],
  2181.                               [Context] 
  2182.   Equiv to the Macro Assign to Key dlg box. You can assign a macro to any key or key combination.Assigns the macro Name$ to the specified KeyCode.KeyCode is a number representing the exact key The number is not equivalent to the SendKeys syntax.Context is 0 for global  1 for document template.Assign is def- ault action.Can append ResetAll/UnAssign
  2183. ----------------------------------------
  2184. ----------------------------------------
  2185. MacroAssignToKey  (Key Code Summary)
  2186. ........................................
  2187. Backsp  8  PgUp 33  0-9      48-57
  2188. Tab     9  PgDn 34  A-Z      65-90
  2189. 5(NP)* 12  End  35  0-9(NP)  96-105  
  2190. Enter  13  Home 36  *+?-./  106-111
  2191. Esc    27  Ins  45  F1-F16  112-127
  2192. Space  32  Del  46  * w/NumLock off
  2193.  
  2194. Add following values for shifted keys:
  2195. 256 (Ctrl)   512 (Shift)   1024 (Alt)
  2196. ----------------------------------------
  2197. ----------------------------------------
  2198. MacroAssignToKey  (Key Codes)
  2199. ........................................
  2200. 48-0  66-B  77-M  88-X  103-7  114-F3
  2201. 49-1  67-C  78-N  89-Y  104-8  115-F4
  2202. 50-2  68-D  79-O  90-Z  105-9  116-F5
  2203. 51-3  69-E  80-P  #Pd:  106-*  117-F6
  2204. 52-4  70-F  81-Q  96-0  107-+  118-F7
  2205. 53-5  71-G  82-R  97-1  108-?? 119-F8
  2206. 54-6  72-H  83-S  98-2  109 -  120-F9
  2207. 55-7  73-I  84-T  99-3  110-.  121-F10
  2208. 56-8  74-J  85-U 100-4  111-/  122-F11
  2209. 57-9  75-K  86-V 101-5  112-F1 123-F12
  2210. 65-A  76-L  87-W 102-6  113-F2 124-F13
  2211. ----------------------------------------
  2212. ----------------------------------------
  2213. MacroAssignToMenu 
  2214. ........................................
  2215. Syn:  MacroAssignToMenu [Name$],[Menu$],
  2216.                  [MenuText$], [Context] 
  2217.  Equiv to the Macro Assign To Menu dlg box.Assigns the macro Name$ to the specified Menu$ with MenuText$. Menu$ can be File, Edit, View, Insert, For- Format, Utilities, Macro, or Window. Context is 0 for global, 1 for doc template. Assign is default action.Ap-
  2218. pend ResetAll/UnAssign cbn to change 
  2219. action of macro.
  2220. ----------------------------------------
  2221. ----------------------------------------
  2222. MacroEdit 
  2223. ........................................
  2224. Syntax:  MacroEdit Name$, [Context],         [Description$],[ShowAll],[NewName$] 
  2225.   Equivalent to the Macro Edit dlg box. Displays the Name$ macro for editing. Context is 0 for global (def) or 1 for document template. The Description$ refers to text on status line. ShowAll lists all Word commands.
  2226. If Rename,Delete or Set cbn is used and followed by another action, multi-
  2227. ple MacroEdit commands are recorded.
  2228. ----------------------------------------
  2229. ----------------------------------------
  2230. MacroName$() 
  2231. ........................................
  2232. Syn:A$=MacroName$(Count,[Context],[All]) 
  2233.  Returns the name of the macro defined in the given context. Count may be in the rng of 1 to CountMacros(Context).  The name is taken from the list in the given context.MacroName$(0) gives the name of the current macro window, if any.Context is 0 for global, 1 for document template. If All is True, built-in commands are included.
  2234.  
  2235. ----------------------------------------
  2236. ----------------------------------------
  2237. MacroRecord 
  2238. ........................................
  2239. Syntax:   MacroRecord [Name$],[Context],
  2240.                          [Description$] 
  2241.   Equivalent to the File Record Macro and the Macro Record dialog boxes. Starts the macro recorder. If Name$ is not given, the next default recording name (Macron) is used. Context is 0 for
  2242. global (def), 1 for document template.
  2243. The Description$ refers to the text that appears in status bar if macro is assigned to a menu.
  2244. ----------------------------------------
  2245. ----------------------------------------
  2246. MacroRun
  2247. ........................................
  2248. Syntax:  MacroRun Name$, [ShowAll] 
  2249.  
  2250.  
  2251.  Equivalent to the Macro Run dialog box. Runs the named macro or command. If ShowAll is 1, built-in commands are included. 
  2252.  
  2253. ----------------------------------------
  2254. ----------------------------------------
  2255. MenuMode 
  2256. ........................................
  2257. Syntax:  MenuMode 
  2258.  
  2259.   Activates menu mode. Equivalent to pressing Alt or F10. 
  2260.  
  2261. ----------------------------------------
  2262. ----------------------------------------
  2263. Mid$()
  2264. ........................................
  2265. Syn:Num = Mid$(Source$, Index, [Count]) 
  2266. Returns Count characters from Source$, starting at character Index. If Count is not supplied, the rest of the string is returned. 
  2267.  
  2268. ----------------------------------------
  2269. ----------------------------------------
  2270. MkDir
  2271. ........................................
  2272. Syntax:  MkDir Name$ 
  2273.  
  2274.   Creates the directory specified by DirName$. 
  2275.  
  2276. ----------------------------------------
  2277. ----------------------------------------
  2278. MoveText
  2279. ........................................
  2280. Syntax:  MoveText 
  2281.  
  2282.   Moves text. Equivalent to pressing F2. Note: this action does not use the Clipboard. 
  2283.  
  2284. ----------------------------------------
  2285. ----------------------------------------
  2286. MsgBox
  2287. ........................................
  2288. Button:          Icons:      Def Button:
  2289. 0  OK               0 no icon     0 1st
  2290. 1  OK/Cancel       16 Hand      256 2nd  
  2291. 2  Abt/Rtry/Ignore 32 "?" icon  512 3rd
  2292. 3  Yes/No/Cancel   48 "!" icon
  2293. 4  Yes/No          64 "*" icon 
  2294. 5  Retry/Cancel
  2295. Negative Type values:
  2296. -1 Display message permanently
  2297. -2 Display until mouse/key event occurs
  2298. -8 Use entire status bar width
  2299. ----------------------------------------
  2300. ----------------------------------------
  2301. MsgBox
  2302. ........................................
  2303. Syntax:  Message$, [Title$], [Type] 
  2304.   Creates a message box displaying Message$. Title$ is the title of the message box. If it is not supplied, "Microsoft Word" is the title of the message box.Type determines the symbol and buttons displayed in the box.If Type is negative, then the message is displayed in the status bar and Type must be -1, -2, or -8. 
  2305. ----------------------------------------
  2306. ----------------------------------------
  2307. MsgBox()
  2308. ........................................
  2309. Syn:Num=MsgBox(Message$,[Title$],[Type]) 
  2310.  
  2311.   Returns one of the following values: 
  2312. -1   Leftmost button   OK/Yes/Abort
  2313. 0    Next button       Cancel/No/Retry
  2314. 1    Next button       Cancel/Ignore
  2315.  
  2316. ----------------------------------------
  2317. ----------------------------------------
  2318. Name
  2319. ........................................
  2320. Syntax:  Name OldName$ As NewName$ 
  2321.  
  2322.   Renames a file. If the new filename specified already exists, an error is generated. 
  2323.  
  2324. ----------------------------------------
  2325. ----------------------------------------
  2326. NextCell
  2327. ........................................
  2328. Syntax:  NextCell 
  2329.  
  2330.   Moves the selection to the beginning of the next cell in a table. 
  2331.  
  2332. ----------------------------------------
  2333. ----------------------------------------
  2334. NextCell()
  2335. ........................................
  2336. Syntax:  Log = NextCell() 
  2337.  
  2338.   Moves to the next cell. Returns 0 (zero) if there is no next cell. 
  2339.  
  2340. ----------------------------------------
  2341. ----------------------------------------
  2342. NextField
  2343. ........................................
  2344. Syntax:  NextField 
  2345.  
  2346.  Moves the selection to the next field result. Skips over marker fields, such as Index Entry fields. 
  2347.  
  2348. ----------------------------------------
  2349. ----------------------------------------
  2350. NextField()
  2351. ........................................
  2352. Syntax:  Log = NextField() 
  2353.  
  2354.   Moves to the next field. Returns 0 (zero) if there is no next field. 
  2355.  
  2356. ----------------------------------------
  2357. ----------------------------------------
  2358. NextObject
  2359. ........................................
  2360. Syntax:  NextObject 
  2361.  
  2362.   Selects the next object in page view. 
  2363.  
  2364. ----------------------------------------
  2365. ----------------------------------------
  2366. NextObject()
  2367. ........................................
  2368. Syntax:  Log = NextObject() 
  2369.  
  2370.   Moves to the next positioned object. Returns 0 (zero) if there is no next object. 
  2371.  
  2372. ----------------------------------------
  2373. ----------------------------------------
  2374. NextPage
  2375. ........................................
  2376. Syntax:  NextPage 
  2377.  
  2378.   Moves the insertion point to the beginning of the next page in page view. 
  2379.  
  2380. ----------------------------------------
  2381. ----------------------------------------
  2382. NextPage()
  2383. ........................................
  2384. Syntax:  Log = NextPage() 
  2385.  
  2386.   Moves the insertion point to the beginning of the next page. Returns 0 (zero) if there is no next page. 
  2387.  
  2388. ----------------------------------------
  2389. ----------------------------------------
  2390. NextTab()
  2391. ........................................
  2392. Syntax:  Num = NextTab(Pos) 
  2393.  
  2394.   Returns the position of the next tab stop to the right of Pos. Pos is a number given in points. If more than one paragraph is selected and the tabs do not all match, -1 is returned. 
  2395.  
  2396. ----------------------------------------
  2397. ----------------------------------------
  2398. NextWindow
  2399. ........................................
  2400. Syntax:  NextWindow 
  2401.  
  2402.   Moves the selection to the next document window. 
  2403.  
  2404. ----------------------------------------
  2405. ----------------------------------------
  2406. NormalStyle
  2407. ........................................
  2408. Syntax:  NormalStyle 
  2409.  
  2410.   Formats the selection in Normal paragraph format. 
  2411.  
  2412. ----------------------------------------
  2413. ----------------------------------------
  2414. NormalStyle()
  2415. ........................................
  2416. Syntax:  Num = NormalStyle() 
  2417.  
  2418.   Returns 1 if all of the selection has the Normal style, 0 (zero) if none of the selection has the Normal style, and -1 if part of the selection has the Normal style. 
  2419.  
  2420. ----------------------------------------
  2421. ----------------------------------------
  2422. OK
  2423. ........................................
  2424. Syntax:  OK 
  2425.  
  2426.   Terminates a copy or move operation and performs its action. 
  2427.  
  2428. ----------------------------------------
  2429. ----------------------------------------
  2430. On Error 
  2431. ........................................
  2432. Syntax:  On Error Goto Label 
  2433. Syntax:  On Error Resume Next 
  2434. Syntax:  On Error Goto 0 
  2435.  
  2436.   The On Error control structure allows the programmer to "trap" an error so that the program can perform its own error handling. See WTR for details.
  2437.  
  2438. ----------------------------------------
  2439. ----------------------------------------
  2440. OnTime
  2441. ........................................
  2442. Syntax: OnTime When$,Name$,[Tolerance]
  2443.  
  2444.  Executes the macro specified by Name$ at the time specified by When$. When$ is a text representation of the time for execution in a 24-hour format. When$ can also include a date string that precedes the time string. If the date is not specified, the macro is 
  2445. run at the first occurence of the specified time.
  2446. ----------------------------------------
  2447. ----------------------------------------
  2448. OnTime (more)
  2449. ........................................
  2450.  The macro is executed the next time Word is idle after specfied When$. Word does not run the macro if more than Tolerance seconds have elapsed since When$, and the macro has not yet run. If Tolerance is 0 (zero), or not supplied, Word will always run the macro, regardless of how long it is before Word is idle and can run the macro.
  2451.  
  2452. ----------------------------------------
  2453. ----------------------------------------
  2454. Open
  2455. ........................................
  2456. Syntax:  Open Name$ For Mode$ As                          [#]StreamNumber
  2457.  
  2458.  Opens the file or device specified by Name$. The Name$ can be a device such as Com1 or Lpt1, and must be enclosed in quotation marks. Do not include the colon following the device name. 
  2459.  
  2460. ----------------------------------------
  2461. ----------------------------------------
  2462. OpenUpPara
  2463. ........................................
  2464. Syntax:  OpenUpPara 
  2465.  
  2466.   Adds one line of space before the current paragraph. 
  2467.  
  2468. ----------------------------------------
  2469. ----------------------------------------
  2470. OtherPane
  2471. ........................................
  2472. Syntax:  OtherPane 
  2473.  
  2474.  Moves the selection to the other pane of the current window. 
  2475.  
  2476. ----------------------------------------
  2477. ----------------------------------------
  2478. OutlineCollapse
  2479. ........................................
  2480. Syntax:  OutlineCollapse 
  2481.  
  2482.  Collapses the lowest level of subtext levels under the selected heading. 
  2483.  
  2484. ----------------------------------------
  2485. ----------------------------------------
  2486. OutlineDemote
  2487. ........................................
  2488. Syntax:  OutlineDemote 
  2489.  
  2490.   Increases the heading level of the selection by one. 
  2491.  
  2492. ----------------------------------------
  2493. ----------------------------------------
  2494. OutlineExpand
  2495. ........................................
  2496. Syntax:  OutlineExpand 
  2497.  
  2498.   Expands the lowest level of subtext under the selected heading. 
  2499.  
  2500. ----------------------------------------
  2501. ----------------------------------------
  2502. OutlineLevel()
  2503. ........................................
  2504. Syntax:  Num = OutlineLevel() 
  2505.  
  2506.   Returns the heading level of the specified paragraph. Returns 0 (zero) if the specified paragraph doesn't have a defined level (body text, for example). 
  2507.  
  2508. ----------------------------------------
  2509. ----------------------------------------
  2510. OutlineMoveDown
  2511. ........................................
  2512. Syntax:  OutlineMoveDown 
  2513.  
  2514.   Moves the selection below the next visible heading. 
  2515.  
  2516. ----------------------------------------
  2517. ----------------------------------------
  2518. OutlineMoveUp
  2519. ........................................
  2520. Syntax:  OutlineMoveUp 
  2521.  
  2522.   Moves the selection above the next visible heading. 
  2523.  
  2524. ----------------------------------------
  2525. ----------------------------------------
  2526. OutlinePromote
  2527. ........................................
  2528. Syntax:  OutlinePromote 
  2529.  
  2530.   Decreases the heading level of the selection by one. 
  2531.  
  2532. ----------------------------------------
  2533. ----------------------------------------
  2534. OutlineShowFirstLine
  2535. ........................................
  2536. Syntax:  OutlineShowFirstLine [On] 
  2537.  
  2538.   If On is omitted, toggles the state. Changes the view of non-heading level text. If On is nonzero, only first line of text is shown, if On is 0 (zero), all text is shown. 
  2539.  
  2540. ----------------------------------------
  2541. ----------------------------------------
  2542. Overtype
  2543. ........................................
  2544. Syntax:  Overtype [On] 
  2545.  
  2546.   Without the argument, toggles over- typing mode.If On is nonzero, overtype mode is activated and OVR is displayed in the status bar. If On is 0 (zero), overtype mode is deactivated. 
  2547.  
  2548. ----------------------------------------
  2549. ----------------------------------------
  2550. Overtype()
  2551. ........................................
  2552. Syntax:  Log = Overtype() 
  2553.  
  2554.   Returns -1 if overtype mode is on, 0 (zero) if overtype mode is off. 
  2555.  
  2556. ----------------------------------------
  2557. ----------------------------------------
  2558. PageDown
  2559. ........................................
  2560. Syntax:  PageDown [Repeat], [Select] 
  2561.  
  2562.   Moves the selection down by Repeat screens. If the Repeat argument is omitted, 1 is assumed. If Select is nonzero, the selection is extended down by Repeat screens. Equivalent to the PgDn key. If Select is 0 (zero) or omitted, the selection is not extended. 
  2563.  
  2564. ----------------------------------------
  2565. ----------------------------------------
  2566. PageDown()
  2567. ........................................
  2568. Syntax: Log=PageDown([Repeat],[Select]) 
  2569.  
  2570.   Moves the selection down by Repeat pages. Returns -1 if operation was successful, returns 0 (zero) if not. 
  2571.  
  2572. ----------------------------------------
  2573. ----------------------------------------
  2574. PageUp
  2575. ........................................
  2576. Syntax:  PageUp [Repeat], [Select] 
  2577.  
  2578.   Moves the selection up by Repeat screens. If the Repeat argument is omitted, 1 is assumed. If Select is nonzero, the selection is extended up by Repeat screens. Equivalent to the PgUp key. If Select is 0 (zero) or omitted, the selection is not extended. 
  2579.  
  2580. ----------------------------------------
  2581. ----------------------------------------
  2582. PageUp()
  2583. ........................................
  2584. Syntax: Log=PageUp ([Repeat],[Select]) 
  2585.  
  2586.   Moves the selection up by Repeat pages. Returns -1 if operation was successful, returns 0 (zero) if not. 
  2587.  
  2588. ----------------------------------------
  2589. ----------------------------------------
  2590. ParaDown
  2591. ........................................
  2592. Syntax:  ParaDown [Repeat], [Select] 
  2593.  
  2594.   Moves the selection down by Repeat paragraphs. If Repeat is omitted, 1 is assumed. If Select is nonzero, the selection is extended down by Repeat paragraphs. 
  2595.  
  2596. ----------------------------------------
  2597. ----------------------------------------
  2598. ParaDown()
  2599. ........................................
  2600. Syntax: Log=ParaDown([Repeat],[Select]) 
  2601.  
  2602.   Moves the selection down by Repeat paragraphs. Returns 0 (zero) if the action cannot be performed. For example, the function returns 0 if the insertion point is at the end of the 
  2603. document. 
  2604.  
  2605. ----------------------------------------
  2606. ----------------------------------------
  2607. ParaUp
  2608. ........................................
  2609. Syntax:  ParaUp [Repeat], [Select] 
  2610.  
  2611.   Moves the selection up by Repeat paragraphs. If Repeat is omitted, 1 is assumed. If Select is nonzero, the selection is extended up by Repeat paragraphs. 
  2612.  
  2613. ----------------------------------------
  2614. ----------------------------------------
  2615. ParaUp()
  2616. ........................................
  2617. Syntax: Log=ParaUp([Repeat],[Select]) 
  2618.  
  2619.   Moves the selection up by Repeat paragraphs. Returns 0 (zero) if the action cannot be performed. For example, the function returns 0 if the insertion point is at the beginning of 
  2620. the document. 
  2621.  
  2622. ----------------------------------------
  2623. ----------------------------------------
  2624. PauseRecorder
  2625. ........................................
  2626. Syntax:  PauseRecorder 
  2627.  
  2628.   Stops macro recording until PauseRecorder is executed again. 
  2629.  
  2630. ----------------------------------------
  2631. ----------------------------------------
  2632. PrevCell
  2633. ........................................
  2634. Syntax:  PrevCell 
  2635.  
  2636.   Moves the selection to the previous cell. 
  2637.  
  2638. ----------------------------------------
  2639. ----------------------------------------
  2640. PrevCell()
  2641. ........................................
  2642. Syntax:  Log = PrevCell() 
  2643.  
  2644.  Moves selection to the previous cell. Returns 0 (zero) when the selection is in the first cell. 
  2645.  
  2646. ----------------------------------------
  2647. ----------------------------------------
  2648. PrevField 
  2649. ........................................
  2650. Syntax:  PrevField 
  2651.  
  2652.   Moves the selection to the previous field. 
  2653.  
  2654. ----------------------------------------
  2655. ----------------------------------------
  2656. PrevField()
  2657. ........................................
  2658. Syntax:  Log = PrevField() 
  2659.  
  2660.   Moves selection to the previous field. Returns 0 (zero) when the selection is in the first field. 
  2661.  
  2662. ----------------------------------------
  2663. ----------------------------------------
  2664. PrevObject
  2665. ........................................
  2666. Syntax:  PrevObject 
  2667.  
  2668.   Selects the previous object in page view. 
  2669.  
  2670. ----------------------------------------
  2671. ----------------------------------------
  2672. PrevObject()
  2673. ........................................
  2674. Syntax:   Log = PrevObject() 
  2675.  
  2676.   Selects the previous object. Returns 0 (zero) when the selection is at the first object or text area. 
  2677.  
  2678. ----------------------------------------
  2679. ----------------------------------------
  2680. PrevPage
  2681. ........................................
  2682. Syntax:  PrevPage 
  2683.  
  2684.   In page view, moves the insertion point to the beginning of the previous actual page. 
  2685.  
  2686. ----------------------------------------
  2687. ----------------------------------------
  2688. PrevPage()
  2689. ........................................
  2690. Syntax:  Log = PrevPage() 
  2691.  
  2692.   Moves to the previous page. Returns 0 (zero) when the selection is at the first actual page.
  2693.  
  2694. ----------------------------------------
  2695. ----------------------------------------
  2696. PrevTab() 
  2697. ........................................
  2698. Syntax:  Log = PrevTab(Pos) 
  2699.  
  2700.   Returns the position of the next tab to the left of Pos. Pos is a number given in points. If more than one paragraph is selected and the tabs do not all match, -1 is returned. 
  2701.  
  2702. ----------------------------------------
  2703. ----------------------------------------
  2704. PrevWindow
  2705. ........................................
  2706. Syntax:  PrevWindow 
  2707.  
  2708.   Activates the previously active window. 
  2709.  
  2710. ----------------------------------------
  2711. ----------------------------------------
  2712. Print
  2713. ........................................
  2714. Syn: Print [[#]StreamNumber],Expression 
  2715.  
  2716.   Writes Expression to the file specified by StreamNumber. With no StreamNumber specified, output goes to the status bar. 
  2717.  
  2718. ----------------------------------------
  2719. ----------------------------------------
  2720. Read
  2721. ........................................
  2722. Syn: Read [#]StreamNumber, Variable(s) 
  2723.  
  2724.   Similar to the Input statement, but removes quotation marks for strings. This statement is used with the Write statement. 
  2725.  
  2726. ----------------------------------------
  2727. ----------------------------------------
  2728. RecordNextCommand
  2729. ........................................
  2730. Syntax:  RecordNextCommand 
  2731.  
  2732.   Records the next command at the insertion point in the current macro window. 
  2733.  
  2734. ----------------------------------------
  2735. ----------------------------------------
  2736. Rem
  2737. ........................................
  2738. Syntax:  Rem Remarks 
  2739. Syntax:  'Remarks 
  2740.  
  2741.   Inserts explanatory text into the macro. You can use an apostrophe (') instead of a Rem statement. If a Rem statement follows other statements on a line, it must be separated from 
  2742. those statements by a colon (:). A colon is not required before a remark introduced by an apostrophe.
  2743. ----------------------------------------
  2744. ----------------------------------------
  2745. RenameMenu
  2746. ........................................
  2747. Syntax: RenameMenu MenuNumber, NewText$ 
  2748. Renames the top level menu of Menu Number to New Text$. MenuNumber represents the name of a menu. NewText$ replaces the menu name. An ampersand (&) preceding a character makes it the keyboard equivalent to selecting from the menu. MenuNumber:
  2749. 0 File  3 Insert  6 Macro
  2750. 1 Edit  4 Format  7 Window
  2751. 2 View  5 Utilities
  2752. ----------------------------------------
  2753. ----------------------------------------
  2754. Repeat
  2755. ........................................
  2756. Syntax:  Repeat 
  2757.  
  2758.   Repeats the last command. 
  2759.  
  2760. ----------------------------------------
  2761. ----------------------------------------
  2762. RepeatSearch
  2763. ........................................
  2764. Syntax:  RepeatSearch 
  2765.  
  2766.   Repeats the most recent search. 
  2767.  
  2768. ----------------------------------------
  2769. ----------------------------------------
  2770. ResetChar
  2771. ........................................
  2772. Syntax:  ResetChar 
  2773.  
  2774.   Removes manual character formatting from the selected text. Manual character formatting is formatting that is not applied as a style. For example, you manually format a word or 
  2775. phrase in a paragraph as bold text if the paragraph style is normal text. The text is left with the character formatting of the current style.
  2776. ----------------------------------------
  2777. ----------------------------------------
  2778. ResetChar()
  2779. ........................................
  2780. Syntax:  Num = ResetChar() 
  2781.  
  2782.   Returns 1 if the selected text contains no manual character formatting. Returns 0 (zero) if any manual character formatting is present. 
  2783.  
  2784. ----------------------------------------
  2785. ----------------------------------------
  2786. ResetFootnoteContNotice
  2787. ........................................
  2788. Syntax:  ResetFootnoteContNotice 
  2789.  
  2790.   Resets the footnote continuation notice to the default value. 
  2791.  
  2792. ----------------------------------------
  2793. ----------------------------------------
  2794. ResetFootnoteContSep
  2795. ........................................
  2796. Syntax:  ResetFootnoteContSep 
  2797.  
  2798.   Resets the footnote continuation separator to the default value. 
  2799.  
  2800. ----------------------------------------
  2801. ----------------------------------------
  2802. ResetFootnoteSep
  2803. ........................................
  2804. Syntax:  ResetFootnoteSep 
  2805.  
  2806.   Resets the footnote separator to the default value. 
  2807.  
  2808. ----------------------------------------
  2809. ----------------------------------------
  2810. ResetPara
  2811. ........................................
  2812. Syntax:  ResetPara 
  2813.  
  2814.   Removes manual paragraph formatting from the selected text. The text is left with the paragraph formatting of the current style. 
  2815.  
  2816. ----------------------------------------
  2817. ----------------------------------------
  2818. ResetPara()
  2819. ........................................
  2820. Syntax:  Num = ResetPara() 
  2821.  
  2822.   Returns 1 if the selected text contains no manual paragraph formatting. Returns 0 (zero) if 
  2823. any manual paragraph formatting is present.
  2824.  
  2825. ----------------------------------------
  2826. ----------------------------------------
  2827. Right$()
  2828. ........................................
  2829. Syntax:  A$ = Right$(Source$, Count) 
  2830.  
  2831.   Returns the rightmost Count characters of Source$. 
  2832.  
  2833. ----------------------------------------
  2834. ----------------------------------------
  2835. RightPara
  2836. ........................................
  2837. Syntax:  RightPara 
  2838.  
  2839.   Right aligns the selected paragraphs. 
  2840.  
  2841. ----------------------------------------
  2842. ----------------------------------------
  2843. RightPara()
  2844. ........................................
  2845. Syntax:  Num = RightPara() 
  2846.  
  2847.   Returns 0 (zero) if none of the selected paragraphs are right aligned, 1 if all of the selected paragraphs are right aligned, or -1 if more than one kind of paragraph alignment 
  2848. is used.
  2849.  
  2850. ----------------------------------------
  2851. ----------------------------------------
  2852. RmDir
  2853. ........................................
  2854. Syntax:  RmDir Name$ 
  2855.  
  2856.   Removes the specified directory or subdirectory. Files must first be removed from the subdirectory for this statement to work. 
  2857.  
  2858. ----------------------------------------
  2859. ----------------------------------------
  2860. Rnd()
  2861. ........................................
  2862. Syntax:  Num = Rnd([Expression]) 
  2863.  
  2864.  Returns a random fractional value between 0 (zero) and 1. The Expression is not used by WordBASIC, but is provided for compatibility with other forms of BASIC. 
  2865.  
  2866. ----------------------------------------
  2867. ----------------------------------------
  2868. RulerMode
  2869. ........................................
  2870. Syntax:  RulerMode 
  2871.  
  2872.   Switches to ruler mode. 
  2873.  
  2874. ----------------------------------------
  2875. ----------------------------------------
  2876. SaveTemplate
  2877. ........................................
  2878. Syntax:  SaveTemplate 
  2879.  
  2880.   Saves the document template. 
  2881.  
  2882. ----------------------------------------
  2883. ----------------------------------------
  2884. Seek
  2885. ........................................
  2886. Syntax:  Seek [#]StreamNumber, Count 
  2887.  
  2888.   Positions file pointer at character Count in the file attached to stream StreamNumber. 
  2889.  
  2890. ----------------------------------------
  2891. ----------------------------------------
  2892. Seek()
  2893. ........................................
  2894. Syntax:  Num = Seek([#]StreamNumber) 
  2895.  
  2896.   Returns the current file pointer for the specified StreamNumber. 
  2897.  
  2898. ----------------------------------------
  2899. ----------------------------------------
  2900. Select Case
  2901. ........................................
  2902.   The expression is compared with all  values given in each CaseExpression until a match is found. If a match is found, the statement(s) following the CaseExpression are executed. If there is no match and there is a Case Else, those statement(s) are executed. 
  2903.  
  2904. ----------------------------------------
  2905. ----------------------------------------
  2906. Select Case  (example)
  2907. ........................................
  2908. Select Case Expression 
  2909.   Case CaseExpression 
  2910.     Statement(s) 
  2911.   [Case Else 
  2912.     Statement(s)] 
  2913. End Select
  2914.  
  2915. ----------------------------------------
  2916. ----------------------------------------
  2917. Selection$()
  2918. ........................................
  2919. Syntax:  A$ = Selection$() 
  2920.   Returns the plain, unformatted text of the selection. The maximum limit on the selection is 32,000 characters or until memory runs out. If the selection is too large,Selection$() is filled with as much of the selection as will fit, and an error is generated. If the selection is an insertion point, the character follow- ing the insertion point is returned.
  2921. ----------------------------------------
  2922. ----------------------------------------
  2923. SelectTable
  2924. ........................................
  2925. Syntax:  SelectTable 
  2926.  
  2927.    Selects the table containing the insertion point. 
  2928.  
  2929. ----------------------------------------
  2930. ----------------------------------------
  2931. SelType
  2932. ........................................
  2933. Syntax:  SelType Type 
  2934.   Changes the selection highlighting to Type. Type refers to one of the following: 
  2935.  0  Hidden 
  2936.  1  Insertion point 
  2937.  2  Selection
  2938.  4  Dotted selection or insertion point    (whatever is current) 
  2939.  5  Dotted insertion point 
  2940.  6  Dotted selection
  2941. ----------------------------------------
  2942. ----------------------------------------
  2943. SelType()
  2944. ........................................
  2945. Syntax:  Num = SelType() 
  2946.  
  2947.   Returns the type of the selection highlighting. 
  2948.  
  2949. ----------------------------------------
  2950. ----------------------------------------
  2951. SendKeys
  2952. ........................................
  2953. Syntax:  SendKeys Keys$, [Wait] 
  2954.  
  2955.   Sends the keys specified to the active application, just as if they were typed at the keyboard. If Word is not the active application and Wait is -1, Word waits for all keys to be processed before proceeding. Keys$ is represented by one or more characters, such as a for the character a, {Enter} for the Enter key, and {33} for PgUp.
  2956. ----------------------------------------
  2957. ----------------------------------------
  2958. SendKeys  (Key Codes)  
  2959. ........................................
  2960. {backspace}       {home}   Symbols:
  2961.  {bs} or {bksp}   {insert}  % Alt
  2962. {break}           {left}    ^ Ctrl
  2963. {capslock}        {numlock} + Combine
  2964. {clear}           {pgdn}       keys
  2965. {delete} or {del} {pgup}    {key #} to   
  2966. {down}            {prtsc}   repeat key 
  2967. {end}             {right} 
  2968. {enter}           {tab} 
  2969. {escape} or {esc} {up}
  2970. {help}            {F1-16}
  2971. ----------------------------------------
  2972. ----------------------------------------
  2973. SetDirty 
  2974. ........................................
  2975. Syntax:  SetDirty [Dirty] 
  2976.  
  2977.   Makes Word recognize the current document as "dirty," or a changed document. If Dirty is omitted or 1, the document is made dirty. If 0 (zero), it makes the document not 
  2978. dirty. 
  2979.  
  2980. ----------------------------------------
  2981. ----------------------------------------
  2982. SetEndOfBookmark 
  2983. ........................................
  2984. Syntax: SetEndOfBookmark Bookmark1$,
  2985.                             [Bookmark2$]
  2986.  
  2987.   Sets Bookmark2$ to the end point of Bookmark1$. If Bookmark2$ is not supplied, Bookmark1$ is set to its own end. 
  2988.  
  2989. ----------------------------------------
  2990. ----------------------------------------
  2991. SetGlossary
  2992. ........................................
  2993. Syn: SetGlossary Name$,Text$,[Context] 
  2994.  
  2995.  Defines a glossary entry called Name$ containing the text Text$. Context is 0 (zero) for global, 1 for document template. 
  2996.  
  2997. ----------------------------------------
  2998. ----------------------------------------
  2999. SetProfileString
  3000. ........................................
  3001. Syn:SetProfileString [App$],Key$,Value$ 
  3002.  
  3003.   Sets a value in the current WIN.INI. 
  3004. App$ is the name of the Microsoft Windows application. If the applicat- ion is not specified, the string Microsoft Word is used.
  3005.  
  3006. ----------------------------------------
  3007. ----------------------------------------
  3008. SetStartOfBookmark
  3009. ........................................
  3010. Syntax: SetStartOfBookmark Bookmark1$, 
  3011.                            [Bookmark2$] 
  3012.  
  3013.   Sets Bookmark2$ to the starting point of Bookmark1$. If Bookmark2$ is not given, Bookmark1$ is set to its own start. 
  3014.  
  3015. ----------------------------------------
  3016. ----------------------------------------
  3017. Sgn()
  3018. ........................................
  3019. Syntax:  Num = Sgn(n) 
  3020.  
  3021.   Returns the sign of n. Returns 1 for a positive number, -1 for a negative number, or 0 for zero. 
  3022.  
  3023. ----------------------------------------
  3024. ----------------------------------------
  3025. Shell
  3026. ........................................
  3027. Syntax:  Shell App$, [WindowStyle] 
  3028. Starts another program under Microsoft Windows. App$ uses the same format as the File Run command in the Windows MS-DOS Executive, including any switches or arguments that the program accepts. If App$ is the name of a file with an extension specific to an inst- alled application the statement starts the application and loads that file. WS=
  3029. 0/2(icon) 1(normal) 3(zoomed) 4(deactiv)
  3030. ----------------------------------------
  3031. ----------------------------------------
  3032. ShowAll
  3033. ........................................
  3034. Syntax:  ShowAll [On] 
  3035.  
  3036.   Without the argument, toggles ShowAll option of the View Preference command. If On is nonzero, shows all invisible objects such as hidden text, tabs, spaces, paragraph marks, and so on. If On is 0 (zero), turns off ShowAll option. 
  3037.  
  3038. ----------------------------------------
  3039. ----------------------------------------
  3040. ShowAllHeadings
  3041. ........................................
  3042. Syntax:  ShowAllHeadings 
  3043.  
  3044.   Shows all text in outline view. 
  3045.  
  3046. ----------------------------------------
  3047. ----------------------------------------
  3048. ShowHeading1
  3049. ........................................
  3050. Syntax:  ShowHeading1 
  3051.  
  3052.   Shows up to Level 1 headings and hides subordinate headings. 
  3053.  
  3054. ----------------------------------------
  3055. ----------------------------------------
  3056. ShowHeading2
  3057. ........................................
  3058. Syntax:  ShowHeading2 
  3059.  
  3060.   Shows up to Level 2 headings and hides subordinate headings. 
  3061.  
  3062. ----------------------------------------
  3063. ----------------------------------------
  3064. ShowHeading3
  3065. ........................................
  3066. Syntax:  ShowHeading3 
  3067.  
  3068.   Shows up to Level 3 headings and hides subordinate headings. 
  3069.  
  3070. ----------------------------------------
  3071. ----------------------------------------
  3072. ShowHeading4
  3073. ........................................
  3074. Syntax:  ShowHeading4 
  3075.  
  3076.    Shows up to Level 4 headings and hides subordinate headings. 
  3077.  
  3078. ----------------------------------------
  3079. ----------------------------------------
  3080. ShowHeading5
  3081. ........................................
  3082. Syntax:  ShowHeading5 
  3083.  
  3084.   Shows up to Level 5 headings and hides subordinate headings. 
  3085.  
  3086. ----------------------------------------
  3087. ----------------------------------------
  3088. ShowHeading6
  3089. ........................................
  3090. Syntax:  ShowHeading6 
  3091.  
  3092.   Shows up to Level 6 headings and hides subordinate headings. 
  3093.  
  3094. ----------------------------------------
  3095. ----------------------------------------
  3096. ShowHeading7
  3097. ........................................
  3098. Syntax:  ShowHeading7 
  3099.  
  3100.   Shows up to Level 7 headings and hides subordinate headings. 
  3101.  
  3102. ----------------------------------------
  3103. ----------------------------------------
  3104. ShowHeading8
  3105. ........................................
  3106. Syntax:  ShowHeading8 
  3107.  
  3108.   Shows up to Level 8 headings and hides subordinate headings. 
  3109.  
  3110. ----------------------------------------
  3111. ----------------------------------------
  3112. ShowHeading9
  3113. ........................................
  3114. Syntax:  ShowHeading9 
  3115.  
  3116.   Shows up to Level 9 headings and hides subordinate headings. 
  3117.  
  3118. ----------------------------------------
  3119. ----------------------------------------
  3120. ShowVars
  3121. ........................................
  3122. Syntax:  ShowVars 
  3123.  
  3124.   Displays the list of variables (and their values) currently in use. This statement is useful for debugging macros. 
  3125.  
  3126. ----------------------------------------
  3127. ----------------------------------------
  3128. ShrinkFont
  3129. ........................................
  3130. Syntax:  ShrinkFont 
  3131.  
  3132.   Decreases the size of the selected font. Can be used either on the selection or at the insertion point. 
  3133.  
  3134. ----------------------------------------
  3135. ----------------------------------------
  3136. ShrinkSelection 
  3137. ........................................
  3138. Syntax:  ShrinkSelection 
  3139.  
  3140.   Shrinks the selection to the next smallest unit (word, sentence, paragraph, etc.). 
  3141.  
  3142. ----------------------------------------
  3143. ----------------------------------------
  3144. SmallCaps
  3145. ........................................
  3146. Syntax:  SmallCaps [On] 
  3147.  
  3148.   Without the argument, toggles small caps for the entire selection. If On is nonzero, makes the entire selection small caps. If On is 0 (zero), removes small caps from the entire selection. 
  3149.  
  3150. ----------------------------------------
  3151. ----------------------------------------
  3152. SmallCaps()
  3153. ........................................
  3154. Syntax:  Num = SmallCaps() 
  3155.  
  3156.   Returns 0 (zero) if none of the selection is small caps, 1 if all of the selection is small caps, or -1 if part of the selection is small caps. 
  3157.  
  3158. ----------------------------------------
  3159. ----------------------------------------
  3160. SpacePara1
  3161. ........................................
  3162. Syntax:  SpacePara1 
  3163.  
  3164.   Formats the selected paragraphs with single spacing. 
  3165.  
  3166. ----------------------------------------
  3167. ----------------------------------------
  3168. SpacePara1()
  3169. ........................................
  3170. Syntax:  Num = SpacePara1() 
  3171.  
  3172.   Returns 0 (zero) if none of the selected paragraphs are single-spaced, 1 if all of the selected paragraphs are single-spaced, or -1 if more than one kind of paragraph spacing is 
  3173. used. 
  3174.  
  3175. ----------------------------------------
  3176. ----------------------------------------
  3177. SpacePara15
  3178. ........................................
  3179. Syntax:  SpacePara15 
  3180.  
  3181.   Formats the selected paragraphs with one-and-one-half line spacing. 
  3182.  
  3183. ----------------------------------------
  3184. ----------------------------------------
  3185. SpacePara15()
  3186. ........................................
  3187. Syntax:  Num = SpacePara15() 
  3188.  
  3189.   Returns 0 (zero) if none of the selected paragraphs are one-and-one-half spaced, 1 if 
  3190. all of the selected paragraphs are one-and-one-half spaced, or -1 if more than one kind of paragraph spacing is used. 
  3191.  
  3192. ----------------------------------------
  3193. ----------------------------------------
  3194. SpacePara2 
  3195. ........................................
  3196. Syntax:  SpacePara2 
  3197.  
  3198.   Formats the selected paragraphs with double spacing. 
  3199.  
  3200. ----------------------------------------
  3201. ----------------------------------------
  3202. SpacePara2()
  3203. ........................................
  3204. Syntax:  Num = SpacePara2() 
  3205.  
  3206.   Returns 0 (zero) if none of the selected paragraphs are double-spaced, 1 if all of the selected paragraphs are double-spaced, or -1 if more than one kind of paragraph spacing is used. 
  3207.  
  3208. ----------------------------------------
  3209. ----------------------------------------
  3210. Spike
  3211. ........................................
  3212. Syntax:  Spike 
  3213.  
  3214.   Deletes the selection after copying it to the special glossary called the Spike. 
  3215.  
  3216. ----------------------------------------
  3217. ----------------------------------------
  3218. StartOfColumn
  3219. ........................................
  3220. Syntax:  StartOfColumn [Select] 
  3221.  
  3222.   Moves insertion point to topmost position in the currently selected table column. If Select is nonzero, extends the selection. 
  3223.  
  3224. ----------------------------------------
  3225. ----------------------------------------
  3226. StartOfDocument
  3227. ........................................
  3228. Syntax:  StartOfDocument [Select] 
  3229.  
  3230.   Moves the selection to the beginning of the document. If Select is nonzero, extends the selection. 
  3231.  
  3232. ----------------------------------------
  3233. ----------------------------------------
  3234. StartOfLine
  3235. ........................................
  3236. Syntax:  StartOfLine [Select] 
  3237.  
  3238.   Moves the selection to the beginning of the line. If Select is nonzero, extends the selection. 
  3239.  
  3240. ----------------------------------------
  3241. ----------------------------------------
  3242. StartOfRow
  3243. ........................................
  3244. Syntax:  StartOfRow [Select] 
  3245.  
  3246.   Moves insertion point to the leftmost position in the currently selected table row. If Select is nonzero, extends the selection. 
  3247.  
  3248. ----------------------------------------
  3249. ----------------------------------------
  3250. StartOfWindow
  3251. ........................................
  3252. Syntax:  StartOfWindow [Select] 
  3253.  
  3254.   Moves the insertion point to the top left corner of the window. If Select is nonzero, extends the selection. 
  3255.  
  3256. ----------------------------------------
  3257. ----------------------------------------
  3258. Stop
  3259. ........................................
  3260. Syntax: Stop 
  3261.  
  3262.   Stops a running macro and displays a message that the macro was interrupted. 
  3263.  
  3264. ----------------------------------------
  3265. ----------------------------------------
  3266. Str$()
  3267. ........................................
  3268. Syntax:  A$ = Str$(n) 
  3269.  
  3270.   Returns the string representation of value n. Positive numbers have a leading space character. 
  3271.  
  3272. ----------------------------------------
  3273. ----------------------------------------
  3274. String$()
  3275. ........................................
  3276. Syntax:  A$ = String$(Count, Source$) 
  3277.  
  3278.   Returns the first character in Source$ repeated Count times. Replacing Source$ with the number m representing the ASCII value of Source$ returns the character with ANSI 
  3279. code m repeated Count times. 
  3280.  
  3281. ----------------------------------------
  3282. ----------------------------------------
  3283. StyleName$()
  3284. ........................................
  3285. Syntax:A$ = StyleName$([Count],
  3286.                       [Context], [All]) 
  3287.   Returns the name of the style defined in the given context (global or document template). Count may be in the range from 1 to CountStyles (Context). If Count is 0 (zero), the name of the current style is returned; otherwise, the name is taken from the list in the given context (0 for global, 1 for document template).
  3288. ----------------------------------------
  3289. ----------------------------------------
  3290. Sub...End Sub
  3291. ........................................
  3292. Syntax:    Sub Name [ParameterList] 
  3293.       Statement(s) 
  3294.       End Sub 
  3295.  
  3296.   Defines a subroutine. See WTR for more information (Macros: Introduction)
  3297.  
  3298. ----------------------------------------
  3299. ----------------------------------------
  3300. SubScript
  3301. ........................................
  3302. Syntax:  SubScript [On] 
  3303.  
  3304.   Without the argument, toggles subscript for the entire selection. If On is nonzero, makes the entire selection subscript. If On is 0 (zero), removes subscript from the entire selection. 
  3305.  
  3306. ----------------------------------------
  3307. ----------------------------------------
  3308. SubScript()
  3309. ........................................
  3310. Syntax:  Num = SubScript() 
  3311.  
  3312.   Returns 0 (zero) if none of the selection is subscript, 1 if all of the selection is subscript, or -1 if part of the selection is subscript or superscript. 
  3313.  
  3314. ----------------------------------------
  3315. ----------------------------------------
  3316. SuperScript
  3317. ........................................
  3318. Syntax:  SuperScript [On] 
  3319.  
  3320.   Without the argument, toggles superscript for the entire selection. If On is nonzero, makes the entire selection superscript. If On is 0 (zero), removes superscript from the 
  3321. entire selection. 
  3322.  
  3323. ----------------------------------------
  3324. ----------------------------------------
  3325. SuperScript()
  3326. ........................................
  3327. Syntax:  Num = SuperScript() 
  3328.  
  3329.   Returns 0 (zero) if none of the selection is superscript, 1 if all of the selection is superscript, or -1 if part of the selection is superscript or subscript. 
  3330.  
  3331. ----------------------------------------
  3332. ----------------------------------------
  3333. TabLeader$() 
  3334. ........................................
  3335. Syntax:  A$ = TabLeader$(Pos) 
  3336.  
  3337.   Returns the leader character of the tab at Pos points. If more than one paragraph is selected and all the tabs don't match, an empty string is returned. The leader characters returned are blank space, period, hyphen, and underscore. 
  3338.  
  3339. ----------------------------------------
  3340. ----------------------------------------
  3341. TabType()
  3342. ........................................
  3343. Syntax:  Num = TabType(Pos) 
  3344. Returns the type of tab at the given position Pos. If more than one paragraph is selected and all the tabs don't match, -1 is returned. If the tabs match, the type is returned as 
  3345. follows:
  3346.  0  Left-aligned 
  3347.  1  Centered 
  3348.  2  Right-aligned
  3349.  3  Justified
  3350. ----------------------------------------
  3351. ----------------------------------------
  3352. Time$()
  3353. ........................................
  3354. Syntax: A$ = Time$() 
  3355.  
  3356.   Returns the current time in the default format. 
  3357.  
  3358. ----------------------------------------
  3359. ----------------------------------------
  3360. ToggleFieldDisplay
  3361. ........................................
  3362. Syntax:  ToggleFieldDisplay 
  3363.  
  3364.   Toggles the display between field codes and field results. 
  3365.  
  3366. ----------------------------------------
  3367. ----------------------------------------
  3368. UCase$()
  3369. ........................................
  3370. Syntax: A$ = UCase$(A$) 
  3371.  
  3372.   Returns A$ converted to uppercase. 
  3373.  
  3374. ----------------------------------------
  3375. ----------------------------------------
  3376. Underline
  3377. ........................................
  3378. Syntax:  Underline [On] 
  3379.  
  3380.   Without the argument, toggles underlining for the entire selection. If On is nonzero, makes the entire selection underlined. If On is 0 (zero), removes underlining from the 
  3381. entire selection. 
  3382.  
  3383. ----------------------------------------
  3384. ----------------------------------------
  3385. Underline()
  3386. ........................................
  3387. Syntax:  Num = Underline() 
  3388.  
  3389.   Returns 0 (zero) if none of the selection is underlined, 1 if all of the selection is underlined, or -1 if part of the selection is underlined or more than one kind of underlining 
  3390. is used. 
  3391.  
  3392. ----------------------------------------
  3393. ----------------------------------------
  3394. UnHang
  3395. ........................................
  3396. Syntax:  UnHang 
  3397.  
  3398.   Reduces the amount of indent in a hanging indent. 
  3399.  
  3400. ----------------------------------------
  3401. ----------------------------------------
  3402. UnIndent
  3403. ........................................
  3404. Syntax:  UnIndent 
  3405.  
  3406.   Removes the indent from the selected paragraphs. The first paragraph is aligned with the previous tab stop. 
  3407.  
  3408. ----------------------------------------
  3409. ----------------------------------------
  3410. UnLinkFields
  3411. ........................................
  3412. Syntax:  UnLinkFields 
  3413.  
  3414.   Converts the selected fields to plain text and uses the last result. 
  3415.  
  3416. ----------------------------------------
  3417. ----------------------------------------
  3418. UnLockFields
  3419. ........................................
  3420. Syntax:  UnLockFields 
  3421.  
  3422.   Unlocks fields in the current selection for updating. 
  3423.  
  3424. ----------------------------------------
  3425. ----------------------------------------
  3426. UnSpike
  3427. ........................................
  3428. Syntax:  UnSpike 
  3429.  
  3430.   Empties the Spike glossary and inserts all contents into the document at the selection.
  3431.  
  3432. ----------------------------------------
  3433. ----------------------------------------
  3434. UpdateFields
  3435. ........................................
  3436. Syntax:  UpdateFields 
  3437.  
  3438.   Updates the fields in the selection. 
  3439.  
  3440. ----------------------------------------
  3441. ----------------------------------------
  3442. UpdateSource
  3443. ........................................
  3444. Syntax:  UpdateSource 
  3445.  
  3446.   Sends changes in linked Word documents back to their source. 
  3447.  
  3448. ----------------------------------------
  3449. ----------------------------------------
  3450. UtilCalculate
  3451. ........................................
  3452. Syntax:  UtilCalculate 
  3453.  
  3454.   Equivalent to the Calculate command on the Utilities menu. The selection is evaluated as a mathematical expression. The result of the evaluation is placed on the Clipboard. 
  3455.  
  3456. ----------------------------------------
  3457. ----------------------------------------
  3458. UtilCalculate()
  3459. ........................................
  3460. Syn: Num = UtilCalculate([Expression$]) 
  3461.  
  3462.   Evaluates Expression. With the arg- ument, this function is equivalent to the = field. Values in Expression can be table cell references. Without an expression, performs the same oper- ation as the UtilCalculate statement, but returns the result rather than placing it on the Clipboard. See WTR for more information on the = field.
  3463. ----------------------------------------
  3464. ----------------------------------------
  3465. UtilCompareVersions
  3466. ........................................
  3467. Syntax:  UtilCompareVersions Name$ 
  3468.  
  3469.   Equivalent to the Utilities Compare Versions dialog box. Compares the current document with the document specified by Name$. 
  3470.  
  3471. ----------------------------------------
  3472. ----------------------------------------
  3473. UtilCustomize
  3474. ........................................
  3475. Syntax:UtilCustomize [AutoSave],[Units],
  3476.            [Pagination],[SummaryPrompt],
  3477.              [ReplaceSelection],[Name$],
  3478.          [Initials$],[ButtonFieldClicks]
  3479.  
  3480.   Equivalent to the Utilities Customize dialog box. Some arguments take measurements in points or num- bers. Other arguments correspond to check boxes.
  3481.  
  3482. ----------------------------------------
  3483. ----------------------------------------
  3484. UtilGetSpelling
  3485. ........................................
  3486. Syntax:  UtilGetSpelling FillArray$(),
  3487.            [Word$],[MainDic$],[SuppDic$]
  3488.  
  3489.   Fills the string array FillArray$ with all available spellings for a word. If Word$ is supplied, that word is used. If it is not supplied, Word uses the word closest to the insertion point. The spellings for each defin- ition are appended in the order they appear in the spelling checker.
  3490. ----------------------------------------
  3491. ----------------------------------------
  3492. UtilGetSpelling (example)
  3493. ........................................
  3494. Sub MAIN 
  3495. Dim S$(10) 
  3496. UtilGetSpelling S$(), "color" 
  3497. For x = 0 To 9 
  3498.     MsgBox S$(x) 
  3499. Next x 
  3500. End Sub 
  3501.  
  3502. ----------------------------------------
  3503. ----------------------------------------
  3504. UtilGetSpelling() 
  3505. ........................................
  3506. Syn:  Log=UtilGetSpelling(FillArray$(),
  3507.           [Word$],[MainDic$],[SuppDic$])
  3508. Fills the string array FillArray$ with all available spellings of a word. If Word$ is supplied, that word is used. If it is not supplied, Word uses the word closest to the insertion point. The spellings for each definition are appended in the order they appear in 
  3509. the spelling checker. Returns 0 if the word is spelled correctly.
  3510. ----------------------------------------
  3511. ----------------------------------------
  3512. UtilGetSynonyms
  3513. ........................................
  3514. Syn:UtilGetSynonyms FillArray$(),[Word$]
  3515.  
  3516.   Fills the string array FillArray$ with all available synonyms for Word$. If Word$ is not supplied, the word nearest the selection is used. 
  3517.  
  3518. ----------------------------------------
  3519. ----------------------------------------
  3520. UtilGetSynonyms()
  3521. ........................................
  3522. Syn: Log = UtilGetSynonyms(FillArray$(),
  3523.                                 [Word$])
  3524.   Fills the string array FillArray$ with all available synonyms for Word$. If Word$ is not supplied, the word nearest the selection is used. Returns 0 (zero) if there are no synonyms 
  3525. available and returns -1 if one or more synonyms are available. 
  3526.  
  3527. ----------------------------------------
  3528. ----------------------------------------
  3529. UtilHyphenate
  3530. ........................................
  3531. Syntax:  UtilHyphenate [HyphenateCaps],
  3532.                   [Confirm],[HotZone[$]]
  3533.  
  3534.   Equivalent to the Utilities Hyphenate dialog box. The arguments correspond to check boxes. 
  3535.  
  3536. ----------------------------------------
  3537. ----------------------------------------
  3538. UtilRenumber 
  3539. ........................................
  3540. Syntax: UtilRenumber [NumParas],[Type],
  3541.      [StartAt],[ShowAllLevels],[Format$]
  3542.  
  3543.   Equivalent to the Utilities Renumber dialog box. The arguments correspond to check boxes. 
  3544.  
  3545. ----------------------------------------
  3546. ----------------------------------------
  3547. UtilRepaginateNow 
  3548. ........................................
  3549. Syntax:  UtilRepaginateNow 
  3550.  
  3551.   Equivalent to the Repaginate Now command on the Utilities menu. Forces 
  3552. repagination of the entire document. 
  3553.  
  3554. ----------------------------------------
  3555. ----------------------------------------
  3556. UtilRevisionMarks
  3557. ........................................
  3558. Syn:  UtilRevisionMarks [MarkRevisions],
  3559.                 [RevisionBars],[NewText]
  3560.  
  3561.   Equivalent to the Utilities Revision Marks dialog box. The arguments correspond to check boxes. The Search (for next text with revision marking) Accept Revisions or Undo Revisions 
  3562. command button name can be appended.
  3563.  
  3564. ----------------------------------------
  3565. ----------------------------------------
  3566. UtilSort
  3567. ........................................
  3568. Syntax:   UtilSort [Order],[Type],
  3569.               [Separator],[FieldNum[$]],
  3570.             [SortColumn],[CaseSensitive]
  3571.  
  3572.   Equivalent to the Utilities Sort dialog box. 
  3573.  
  3574. ----------------------------------------
  3575. ----------------------------------------
  3576. UtilSpelling
  3577. ........................................
  3578. Syntax:  UtilSpelling [Word$],
  3579.                   [MainDic$],[SuppDic$],
  3580.             [IgnoreCaps],[AlwaysSuggest]
  3581.  
  3582.   Equivalent to the Utilities Spelling dialog box. The arguments correspond to check boxes. The Delete command button name can be appended to remove the word from the current supplemental dictionary.
  3583.  
  3584. ----------------------------------------
  3585. ----------------------------------------
  3586. UtilSpellSelection
  3587. ........................................
  3588. Syntax:  UtilSpellSelection 
  3589.  
  3590.   Checks the selection. If the selection is only part of a word, the selection is expanded to include the whole word. The default supplemental dictionary is used. 
  3591.  
  3592. ----------------------------------------
  3593. ----------------------------------------
  3594. UtilThesaurus
  3595. ........................................
  3596. Syntax:  UtilThesaurus 
  3597.  
  3598.   Lists alternative words for the selection. Equivalent to the Thesaurus command on the Utilities menu. 
  3599.  
  3600. ----------------------------------------
  3601. ----------------------------------------
  3602. Val()
  3603. ........................................
  3604. Syntax:  Num = Val(A$) 
  3605.  
  3606.   Returns the numeric value of A$. 
  3607.  
  3608. ----------------------------------------
  3609. ----------------------------------------
  3610. ViewAnnotations
  3611. ........................................
  3612. Syntax:  ViewAnnotations [On] 
  3613.  
  3614.   Turns on the annotations pane if On is nonzero, turns off the annotations pane is On is 0 (zero). Without the argument, toggles the annotations pane on and off. 
  3615.  
  3616. ----------------------------------------
  3617. ----------------------------------------
  3618. ViewAnnotations()
  3619. ........................................
  3620. Syntax: Log = ViewAnnotations() 
  3621.  
  3622.   Returns -1 if annotations view mode is on, 0 (zero) if annotations view mode is off. 
  3623.  
  3624. ----------------------------------------
  3625. ----------------------------------------
  3626. ViewDraft
  3627. ........................................
  3628. Syntax:  ViewDraft [On] 
  3629.  
  3630.   Turns on draft view mode if On is nonzero, turns off draft view mode if On is 0 (zero). Without the argument, toggles draft view mode. If no window is open, the first window opened is opened in draft view.
  3631.  
  3632. ----------------------------------------
  3633. ----------------------------------------
  3634. ViewDraft()
  3635. ........................................
  3636. Syntax:  Log = ViewDraft() 
  3637.  
  3638.   Returns -1 if draft view mode is on, 0 (zero) if draft view mode is off. 
  3639.  
  3640. ----------------------------------------
  3641. ----------------------------------------
  3642. ViewFieldCodes
  3643. ........................................
  3644. Syntax:  ViewFieldCodes [On] 
  3645.  
  3646.   Turns on field codes view mode if On is nonzero, turns off field codes view mode if On is 0 (zero). Without the argument, toggles field codes view mode. If no window is open, the first window opened shows field codes. 
  3647.  
  3648. ----------------------------------------
  3649. ----------------------------------------
  3650. ViewFieldCodes()
  3651. ........................................
  3652. Syntax:  Log = ViewFieldCodes() 
  3653.  
  3654.   Returns -1 if field codes view mode is on, 0 (zero) if field codes view mode is off. 
  3655.  
  3656. ----------------------------------------
  3657. ----------------------------------------
  3658. ViewFootnotes
  3659. ........................................
  3660. Syntax:  ViewFootnotes [On] 
  3661.  
  3662.   Turns on footnotes view mode if On is nonzero, turns off footnotes view mode if On is 0 (zero). Without the argument, toggles footnotes view mode. If no window is open, the first window opened is opened in footnotes view. 
  3663.  
  3664. ----------------------------------------
  3665. ----------------------------------------
  3666. ViewFootnotes()
  3667. ........................................
  3668. Syntax:  Log = ViewFootnotes() 
  3669.  
  3670.   Returns -1 if footnotes view mode is on, 0 (zero) if footnotes view mode is off. 
  3671.  
  3672. ----------------------------------------
  3673. ----------------------------------------
  3674. ViewFullMenus
  3675. ........................................
  3676. Syntax:  ViewFullMenus 
  3677.  
  3678.   Turns on full menus. 
  3679.  
  3680. ----------------------------------------
  3681. ----------------------------------------
  3682. ViewMenus() 
  3683. ........................................
  3684. Syntax:  Num = ViewMenus() 
  3685. Returns the menu state as follows: 
  3686.  0  Normal short menus 
  3687.  1  Normal full menus 
  3688.  2  No document short menus 
  3689.  3  No document full menus
  3690.  
  3691. ----------------------------------------
  3692. ----------------------------------------
  3693. ViewOutline
  3694. ........................................
  3695. Syntax:  ViewOutline [On] 
  3696.  
  3697.   Turns on outline view mode if On is nonzero, turns off outline view mode if On is 0 (zero). Without the argument, toggles outline view mode. If no window is open, the first 
  3698. window opened is opened in outline view. 
  3699.  
  3700. ----------------------------------------
  3701. ----------------------------------------
  3702. ViewOutline()
  3703. ........................................
  3704. Syntax:  Log = ViewOutline() 
  3705.  
  3706.   Returns -1 if outline view mode is on, 0 (zero) if outline view mode is off. 
  3707.  
  3708. ----------------------------------------
  3709. ----------------------------------------
  3710. ViewPage
  3711. ........................................
  3712. Syntax:  ViewPage [On] 
  3713.  
  3714.   Turns on page view mode if On is nonzero, turns off page view mode if On is 0 (zero). Without the argument, toggles page view mode. If no window is open, the first window opened is opened in page view. 
  3715.  
  3716. ----------------------------------------
  3717. ----------------------------------------
  3718. ViewPage()
  3719. ........................................
  3720. Syntax:  Log = ViewPage() 
  3721.  
  3722.   Returns -1 if page view mode is on, 0 (zero) if page view mode is off. 
  3723.  
  3724. ----------------------------------------
  3725. ----------------------------------------
  3726. ViewPreferences
  3727. ........................................
  3728. Syntax: ViewPreferences [Tabs],[Spaces],
  3729.              [Paras],[Hyphens],[Hidden],
  3730.            [ShowAll],[DisplayAsPrinted],
  3731.             [Pictures],[TextBoundaries],
  3732.    [HScroll],[VScroll],[TableGridlines],
  3733.                      [StyleAreaWidth[$]]
  3734.  
  3735.   Equivalent to the View Preferences dialog box.
  3736. ----------------------------------------
  3737. ----------------------------------------
  3738. ViewRibbon
  3739. ........................................
  3740. Syntax:  ViewRibbon [On] 
  3741.  
  3742.   Turns on the ribbon if On is nonzero, turns off the ribbon if On is 0 (zero). Without the argument, toggles the ribbon. If no window is open, the first window opened is opened 
  3743. with the ribbon. 
  3744.  
  3745. ----------------------------------------
  3746. ----------------------------------------
  3747. ViewRibbon()
  3748. ........................................
  3749. Syntax:  Log = ViewRibbon() 
  3750.  
  3751.   Returns -1 if the ribbon is on, 0 (zero) if the ribbon is off. 
  3752.  
  3753. ----------------------------------------
  3754. ----------------------------------------
  3755. ViewRuler
  3756. ........................................
  3757. Syntax:  ViewRuler [On] 
  3758.  
  3759.   Turns on the ruler if On is nonzero, turns off the ruler if On is 0 (zero). Without the argument, toggles the ruler. If no window is open, the first window opened is opened with the ruler. 
  3760.  
  3761. ----------------------------------------
  3762. ----------------------------------------
  3763. ViewRuler()
  3764. ........................................
  3765. Syntax:  Log = ViewRuler() 
  3766.  
  3767.   Returns -1 if the ruler is on, 0 (zero) if the ruler is off. 
  3768.  
  3769. ----------------------------------------
  3770. ----------------------------------------
  3771. ViewShortMenus
  3772. ........................................
  3773. Syntax:  ViewShortMenus [On] 
  3774.  
  3775.   Turns on short menus if On is nonzero, turns off short menus if On is 0 (zero). Without the argument, toggles short menus. If no window is open, the first window opened is 
  3776. opened in short menus. 
  3777.  
  3778. ----------------------------------------
  3779. ----------------------------------------
  3780. ViewStatusBar
  3781. ........................................
  3782. Syntax:  ViewStatusBar [On] 
  3783.  
  3784.   Turns on the status bar if On is nonzero, turns off the status bar if On is 0 (zero). Without the argument, toggles the status bar. 
  3785.  
  3786. ----------------------------------------
  3787. ----------------------------------------
  3788. ViewStatusBar()
  3789. ........................................
  3790. Syntax:  Log = ViewStatusBar() 
  3791.  
  3792.   Returns -1 if the status bar is on, 0 (zero) if the status bar is off. 
  3793.  
  3794. ----------------------------------------
  3795. ----------------------------------------
  3796. VLine
  3797. ........................................
  3798. Syntax:  VLine [Count] 
  3799.  
  3800.   Scrolls down vertically by Count lines. If Count is not specified, one line is the default. A negative Count scrolls up. 
  3801.  
  3802. ----------------------------------------
  3803. ----------------------------------------
  3804. VPage
  3805. ........................................
  3806. Syntax:  VPage [Count] 
  3807.  
  3808.   Scrolls down vertically by Count screens. If Count is not specified, one screen is the default. A negative Count scrolls up. 
  3809.  
  3810. ----------------------------------------
  3811. ----------------------------------------
  3812. VScroll
  3813. ........................................
  3814. Syntax:  VScroll Percentage 
  3815.  
  3816.   Scrolls vertically the specified percentage of the document length. 
  3817.  
  3818. ----------------------------------------
  3819. ----------------------------------------
  3820. VScroll()
  3821. ........................................
  3822. Syntax:  Num = VScroll() 
  3823.  
  3824.   Returns the current vertical scroll position as a percentage of the document's size. 
  3825.  
  3826. ----------------------------------------
  3827. ----------------------------------------
  3828. While...Wend
  3829. ........................................
  3830. Syntax:    While Condition 
  3831.           Statement(s) 
  3832.         Wend 
  3833.  
  3834.   Repeats the statements in the block while the Condition is True. If the Condition is initially False, the loop is never executed. 
  3835.  
  3836. ----------------------------------------
  3837. ----------------------------------------
  3838. Window()
  3839. ........................................
  3840. Syntax:  Num = Window() 
  3841.  
  3842.   Returns the number of the currently selected window. The number ranges from 1 to the number of open windows. The number corresponds to the number on the Window menu. 
  3843.  
  3844. ----------------------------------------
  3845. ----------------------------------------
  3846. Window1 
  3847. ........................................
  3848. Syntax:  Window1 
  3849.  
  3850.   Selects Window 1. This number corresponds to the number on the Window menu. If you select a nonexistent window, an error is generated. 
  3851.  
  3852. ----------------------------------------
  3853. ----------------------------------------
  3854. Window2
  3855. ........................................
  3856. Syntax:  Window2 
  3857.  
  3858.   Selects Window 2. This number corresponds to the number on the Window menu. If you select a nonexistent window, an error is generated. 
  3859.  
  3860. ----------------------------------------
  3861. ----------------------------------------
  3862. Window3
  3863. ........................................
  3864. Syntax:  Window3 
  3865.  
  3866.   Selects Window 3. This number corresponds to the number on the Window menu. If you select a nonexistent window, an error is generated. 
  3867.  
  3868. ----------------------------------------
  3869. ----------------------------------------
  3870. Window4
  3871. ........................................
  3872. Syntax:  Window4 
  3873.  
  3874.   Selects Window 4. This number corresponds to the number on the Window menu. If you select a nonexistent window, an error is generated. 
  3875.  
  3876. ----------------------------------------
  3877. ----------------------------------------
  3878. Window5
  3879. ........................................
  3880. Syntax:  Window5 
  3881.  
  3882.   Selects Window 5. This number corresponds to the number on the Window menu. If you select a nonexistent window, an error is generated. 
  3883.  
  3884. ----------------------------------------
  3885. ----------------------------------------
  3886. Window6
  3887. ........................................
  3888. Syntax:  Window6 
  3889.  
  3890.   Selects Window 6. This number corresponds to the number on the Window menu. If you select a nonexistent window, an error is generated. 
  3891.  
  3892. ----------------------------------------
  3893. ----------------------------------------
  3894. Window7
  3895. ........................................
  3896. Syntax:  Window7 
  3897.  
  3898.   Selects Window 7. This number corresponds to the number on the Window menu. If you select a nonexistent window, an error is generated. 
  3899.  
  3900. ----------------------------------------
  3901. ----------------------------------------
  3902. Window8
  3903. ........................................
  3904. Syntax:  Window8 
  3905.  
  3906.   Selects Window 8. This number corresponds to the number on the Window menu. If you select a nonexistent window, an error is generated. 
  3907.  
  3908. ----------------------------------------
  3909. ----------------------------------------
  3910. Window9
  3911. ........................................
  3912. Syntax:  Window9 
  3913.  
  3914.   Selects Window 9. This number corresponds to the number on the Window menu. If you select a nonexistent window, an error is generated. 
  3915.  
  3916. ----------------------------------------
  3917. ----------------------------------------
  3918. WindowArrangeAll
  3919. ........................................
  3920. Syntax:  WindowArrangeAll 
  3921.  
  3922.   Arranges all open windows so that windows do not overlap. 
  3923.  
  3924. ----------------------------------------
  3925. ----------------------------------------
  3926. WindowName$()
  3927. ........................................
  3928. Syntax:  A$ = WindowName$(n) 
  3929.  
  3930.   Returns the title of the nth open window. The n corresponds to the number on the Window menu. If n is 0 (zero) or not supplied, the name of the current window is returned. 
  3931.  
  3932. ----------------------------------------
  3933. ----------------------------------------
  3934. WindowNewWindow 
  3935. ........................................
  3936. Syntax:  WindowNewWindow 
  3937.  
  3938.   Equivalent to the New Window command on the Window menu. Creates a copy of 
  3939. the current window. 
  3940.  
  3941. ----------------------------------------
  3942. ----------------------------------------
  3943. WindowPane()
  3944. ........................................
  3945. Syntax:  Num = WindowPane() 
  3946.  
  3947.   If the window isn't split or if the top pane of the current window is selected, returns 1. If the bottom pane is selected, returns 3. 
  3948.  
  3949. ----------------------------------------
  3950. ----------------------------------------
  3951. WordLeft
  3952. ........................................
  3953. Syntax:  WordLeft [Repeat], [Select] 
  3954.  
  3955.   Moves the insertion point left by Repeat words, extending the selection if Select is nonzero. 
  3956.  
  3957. ----------------------------------------
  3958. ----------------------------------------
  3959. WordLeft()
  3960. ........................................
  3961. Syn: Log = WordLeft ([Repeat],[Select]) 
  3962.  
  3963.   Moves the selection left by Repeat words. Returns 0 (zero) if the action cannot be performed. For example, the function returns 0 if the insertion point is at the beginning of the document. 
  3964.  
  3965. ----------------------------------------
  3966. ----------------------------------------
  3967. WordRight
  3968. ........................................
  3969. Syntax:  WordRight [Repeat], [Select] 
  3970.  
  3971.   Moves the insertion point right by Repeat words, selecting if Select is nonzero. 
  3972.  
  3973. ----------------------------------------
  3974. ----------------------------------------
  3975. WordRight()
  3976. ........................................
  3977. Syn:Log = WordRight([Repeat], [Select]) 
  3978.  
  3979.   Moves the selection right by Repeat words. Returns 0 (zero) if the action cannot be performed. 
  3980.  
  3981. ----------------------------------------
  3982. ----------------------------------------
  3983. WordUnderline 
  3984. ........................................
  3985. Syntax:  WordUnderline [On] 
  3986.  
  3987.   Without the argument, toggles word-only underlining for the entire selection. If On is nonzero, makes the entire selection word-only under- lining. If On is 0 (zero), removes 
  3988. word-only underlining from the entire selection. 
  3989.  
  3990. ----------------------------------------
  3991. ----------------------------------------
  3992. WordUnderline()
  3993. ........................................
  3994. Syntax:  Log = WordUnderline() 
  3995.  
  3996.   Returns 0 (zero) if none of the selection is word underlined; 1 if all of the selection is word underlined; or -1 if part of the selection is word underlined or more than one kind of 
  3997. underlining is used. 
  3998.  
  3999. ----------------------------------------
  4000. ----------------------------------------
  4001. Write
  4002. ........................................
  4003. Syn: Write [#]StreamNumber, Expressions 
  4004.  
  4005.   Writes the arguments to StreamNumber including delimiters so they can be read by the Read statement. 
  4006.  
  4007. ----------------------------------------
  4008.